summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_027.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_027.phpt')
-rw-r--r--Zend/tests/errmsg_027.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_027.phpt b/Zend/tests/errmsg_027.phpt
new file mode 100644
index 0000000000..f4fec6155c
--- /dev/null
+++ b/Zend/tests/errmsg_027.phpt
@@ -0,0 +1,16 @@
+--TEST--
+errmsg: class declarations may not be nested
+--FILE--
+<?php
+
+class test {
+ function foo() {
+ class test2 {
+ }
+ }
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Class declarations may not be nested in %s on line %d