summaryrefslogtreecommitdiff
path: root/tests/basic/bug51709_2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/bug51709_2.phpt')
-rw-r--r--tests/basic/bug51709_2.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/basic/bug51709_2.phpt b/tests/basic/bug51709_2.phpt
new file mode 100644
index 0000000..bb1f91c
--- /dev/null
+++ b/tests/basic/bug51709_2.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #51709 (Can't use keywords as method names)
+--FILE--
+<?php
+
+class foo {
+ static function goto() {
+ echo "1";
+ }
+}
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Parse error: syntax error, unexpected %s, expecting %s in %sbug51709_2.php on line %d