summaryrefslogtreecommitdiff
path: root/Zend/tests/inter_06.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/inter_06.phpt')
-rw-r--r--Zend/tests/inter_06.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/inter_06.phpt b/Zend/tests/inter_06.phpt
new file mode 100644
index 0000000..1987c24
--- /dev/null
+++ b/Zend/tests/inter_06.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Trying use name of an internal class as interface name
+--FILE--
+<?php
+
+interface stdClass { }
+
+?>
+--EXPECTF--
+Fatal error: Cannot redeclare class stdClass in %s on line %d