summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug65108.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/bug65108.phpt b/Zend/tests/bug65108.phpt
new file mode 100644
index 0000000000..d3e5a65b26
--- /dev/null
+++ b/Zend/tests/bug65108.phpt
@@ -0,0 +1,27 @@
+--TEST--
+Bug #65108 (is_callable() triggers Fatal Error)
+--FILE--
+<?php
+class C {
+ private function f() {}
+ static function __callStatic($name, $args) {}
+}
+
+class B {
+ public function B() {
+ $isCallable = is_callable(array(new C, 'f'));
+ var_dump($isCallable);
+ }
+}
+
+new B();
+
+Class E {
+ private function f() {}
+ function __call($name, $args) {}
+}
+$isCallable = is_callable(array('E', 'f'));
+var_dump($isCallable);
+--EXPECT--
+bool(false)
+bool(false)