summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2016-03-25 11:02:08 +0000
committerAndrea Faulds <ajf@ajf.me>2016-05-04 19:26:24 +0100
commit660e88c19d98b8353995d750940d8513bfeca85f (patch)
treeb28757a1698d07a26b64e43da3115d5904b801c5 /tests/lang
parentbfef17ab657a2c9796c5bc9d94c746ca94cf0377 (diff)
downloadphp-git-660e88c19d98b8353995d750940d8513bfeca85f.tar.gz
Fix bug #71897
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug71897.phpt16
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