summaryrefslogtreecommitdiff
path: root/Zend/tests/call_static_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/call_static_005.phpt')
-rw-r--r--Zend/tests/call_static_005.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/call_static_005.phpt b/Zend/tests/call_static_005.phpt
new file mode 100644
index 0000000000..7259857e55
--- /dev/null
+++ b/Zend/tests/call_static_005.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Invalid method name in dynamic static call
+--FILE--
+<?php
+
+class foo {
+ static function __callstatic($a, $b) {
+ var_dump($a);
+ }
+}
+
+$a = 'foo::';
+$a();
+
+?>
+--EXPECTF--
+Fatal error: Call to undefined function foo::() in %s on line %d