mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
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".
11 lines
318 B
PHP
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)
|