1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/tests/lang/bug71897.phpt
Andrea Faulds 660e88c19d Fix bug #71897
2016-05-04 19:26:24 +01:00

17 lines
363 B
PHP

--TEST--
Bug #71897 (ASCII 0x7F Delete control character permitted in identifiers)
--FILE--
<?php
eval("
\$a\x7Fb = 3;
var_dump(\$a\x7Fb);
");
?>
--EXPECTF--
Warning: Unexpected character in input: '%s' (ASCII=127) state=0 in %s(%d) : eval()'d code on line %d
Parse error: syntax error, unexpected 'b' (T_STRING) in %s(%d) : eval()'d code on line %d