1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/ext/standard/tests/strings/bug54322.phpt
Gabriel Caruso ce1d69a1f6 Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00

11 lines
318 B
PHP

--TEST--
Bug #54322: Null pointer deref in get_html_translation_table due to information loss in long-to-int conversion
--FILE--
<?php
var_dump(
get_html_translation_table(NAN, 0, "UTF-8") > 0
);
--EXPECTF--
Warning: get_html_translation_table() expects parameter 1 to be int, float given in %s on line %d
bool(false)