summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_call_002.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-05-11 03:15:13 +0000
committerFelipe Pena <felipe@php.net>2008-05-11 03:15:13 +0000
commit3d7013045b0be30f94f608356d65b07ec6e616c3 (patch)
tree5485cba97c401496caca29bbfd24035b70c33172 /Zend/tests/dynamic_call_002.phpt
parentc28ebf6a9205f2c9da80d0f1ba025c9694e437d4 (diff)
downloadphp-git-3d7013045b0be30f94f608356d65b07ec6e616c3.tar.gz
- New tests
Diffstat (limited to 'Zend/tests/dynamic_call_002.phpt')
-rw-r--r--Zend/tests/dynamic_call_002.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/dynamic_call_002.phpt b/Zend/tests/dynamic_call_002.phpt
new file mode 100644
index 0000000000..dcb1529692
--- /dev/null
+++ b/Zend/tests/dynamic_call_002.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Testing dynamic call with invalid value for method name
+--FILE--
+<?php
+
+$a = new stdClass;
+
+$a::$a();
+
+?>
+--EXPECTF--
+Fatal error: Function name must be a string in %s on line %d