- Fixed "make test" to work for phpized extensions. (Hartmut, Jani)
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
(Andrey)
+- Fixed bug #34678 (__call(), is_callable() and static methods). (Dmitry)
- Fixed bug #34645 (ctype corrupts memory when validating large numbers). (Ilia)
- Fixed bug #34643 (wsdl default value has no effect). (Dmitry)
- Fixed bug #34617 (zend_deactivate: objects_store used after
--- /dev/null
+--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
}
}
/* check for __call too */
- if (retval == 0 && ce->__call != 0) {
+ if (retval == 0 && *zobj_ptr_ptr && ce->__call != 0) {
retval = 1;
}
efree(lcname);