mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
RFC: https://wiki.php.net/rfc/explicit_octal_notation Add an extensive test suits for other variants of integer literals Closes GH-6360
15 lines
173 B
PHP
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)
|