summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/magic_methods_006.phpt')
-rw-r--r--Zend/tests/magic_methods_006.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_006.phpt b/Zend/tests/magic_methods_006.phpt
new file mode 100644
index 0000000000..3fdab062b0
--- /dev/null
+++ b/Zend/tests/magic_methods_006.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Testing __callstatic declaration in interface with missing the 'static' modifier
+--FILE--
+<?php
+
+interface a {
+ function __callstatic($a, $b);
+}
+
+?>
+--EXPECTF--
+Fatal error: The magic method __callStatic() must have public visibility and be static in %s on line %d