summaryrefslogtreecommitdiff
path: root/Zend/tests/oct_whitespace.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/oct_whitespace.phpt')
-rw-r--r--Zend/tests/oct_whitespace.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/oct_whitespace.phpt b/Zend/tests/oct_whitespace.phpt
new file mode 100644
index 0000000000..cb0bf4ad7a
--- /dev/null
+++ b/Zend/tests/oct_whitespace.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Octal literal followed by whitespace and another number
+--FILE--
+<?php
+var_dump(0o0 2);
+?>
+--EXPECTF--
+Parse error: syntax error, unexpected integer "2", expecting ")" in %s on line %d