xref: /PHP-8.2/ext/standard/tests/math/hexdec.phpt (revision d90cdbd9)
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--EXPECTF--
18int(74565)
19int(74565)
20
21Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
22int(74565)
23
24Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
25int(74565)
26
27Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d
28int(74565)
29float(78187069441)
30float(6442450943)
31