summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_call_004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/dynamic_call_004.phpt')
-rw-r--r--Zend/tests/dynamic_call_004.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/dynamic_call_004.phpt b/Zend/tests/dynamic_call_004.phpt
new file mode 100644
index 0000000..6e83303
--- /dev/null
+++ b/Zend/tests/dynamic_call_004.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Testing dynamic call with undefined variables
+--FILE--
+<?php
+
+$a::$b();
+
+?>
+--EXPECTF--
+Notice: Undefined variable: a in %s on line %d
+
+Fatal error: Class name must be a valid object or a string in %s on line %d