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
Máté Kocsis 960318ed95 Change argument error message format
Closes GH-5211
2020-02-26 15:00:08 +01:00

13 lines
362 B
PHP

--TEST--
Bug #54322: Null pointer deref in get_html_translation_table due to information loss in long-to-int conversion
--FILE--
<?php
try {
var_dump(get_html_translation_table(NAN, 0, "UTF-8") > 0);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
get_html_translation_table(): Argument #1 ($table) must be of type int, float given