1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/standard/tests/strings/bug54322.phpt
2014-12-21 13:23:02 +00:00

11 lines
322 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 integer, float given in %s on line %d
bool(false)