summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34678.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug34678.phpt')
-rwxr-xr-xZend/tests/bug34678.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/bug34678.phpt b/Zend/tests/bug34678.phpt
new file mode 100755
index 0000000000..2a13201f26
--- /dev/null
+++ b/Zend/tests/bug34678.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #34678 (__call(), is_callable() and static methods)
+--FILE--
+<?php
+class A {
+ public function __call($m, $a) {
+ echo "__call\n";
+ }
+}
+
+class B extends A {
+ public static function foo() {
+ echo "foo\n";
+ }
+}
+
+if (is_callable(array('B', 'foo'))) {
+ call_user_func(array('B', 'foo'));
+}
+if (is_callable(array('A', 'foo'))) {
+ call_user_func(array('A', 'foo'));
+}
+?>
+--EXPECT--
+foo