xref: /PHP-7.3/ext/standard/tests/math/hexdec.phpt (revision 66859a74)
1--TEST--
2overflow check for _php_math_basetozval
3--INI--
4precision=14
5--FILE--
6<?php
7
8var_dump(hexdec("012345"));
9var_dump(hexdec("12345"));
10var_dump(hexdec("q12345"));
11var_dump(hexdec("12345+?!"));
12var_dump(hexdec("12345q"));
13var_dump((float)hexdec("1234500001"));
14var_dump((float)hexdec("17fffffff"));
15
16?>
17--EXPECT--
18int(74565)
19int(74565)
20int(74565)
21int(74565)
22int(74565)
23float(78187069441)
24float(6442450943)
25