mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
b6b15fc65c
If a PHP file contains an invalid hex literal such as `0x_10`, the expected error is `Parse error: syntax error, unexpected 'x_10' (T_STRING) in %s on line %d`. This already worked correctly on Linux, but on Windows prior to this patch a different error was produced: `Parse error: Invalid numeric literal in %s on line %d`.
8 lines
182 B
PHP
8 lines
182 B
PHP
--TEST--
|
|
Bug #77993 (Wrong parse error for invalid hex literal on Windows)
|
|
--FILE--
|
|
<?php
|
|
0xg10;
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected 'xg10' (T_STRING) in %s on line %d
|