diff options
Diffstat (limited to 'tests/lang/bug71897.phpt')
-rw-r--r-- | tests/lang/bug71897.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lang/bug71897.phpt b/tests/lang/bug71897.phpt new file mode 100644 index 0000000000..bd76921af6 --- /dev/null +++ b/tests/lang/bug71897.phpt @@ -0,0 +1,16 @@ +--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 |