diff options
author | Andrea Faulds <ajf@ajf.me> | 2016-03-25 11:02:08 +0000 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2016-05-04 19:26:24 +0100 |
commit | 660e88c19d98b8353995d750940d8513bfeca85f (patch) | |
tree | b28757a1698d07a26b64e43da3115d5904b801c5 /tests/lang | |
parent | bfef17ab657a2c9796c5bc9d94c746ca94cf0377 (diff) | |
download | php-git-660e88c19d98b8353995d750940d8513bfeca85f.tar.gz |
Fix bug #71897
Diffstat (limited to 'tests/lang')
-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 |