1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/standard/tests/math/hexdec_variation2.phpt
George Peter Banyard 589bdf30b2 Implement Explicit octal notation for integers RFC
RFC: https://wiki.php.net/rfc/explicit_octal_notation

Add an extensive test suits for other variants of integer literals

Closes GH-6360
2021-01-04 21:09:23 +01:00

15 lines
173 B
PHP

--TEST--
Test hexdec() function : strange literals
--FILE--
<?php
var_dump(hexdec('0x'));
var_dump(hexdec('0X'));
var_dump(hexdec(''));
?>
--EXPECT--
int(0)
int(0)
int(0)