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