cvs: php-src /ext/spl php_spl.c
| From: | Marcus Boerger | Date: | Thu, 03 Nov 2005 22:04:38 +0000 |
| Subject: | cvs: php-src /ext/spl php_spl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34993@lists.php.net to get a copy of this message | ||
helly Thu Nov 3 17:04:38 2005 EDT
Modified files:
/php-src/ext/spl php_spl.c
Log:
- Add missing check flag
http://cvs.php.net/diff.php/php-src/ext/spl/php_spl.c?r1=1.74&r2=1.75&ty=u
Index: php-src/ext/spl/php_spl.c
diff -u php-src/ext/spl/php_spl.c:1.74 php-src/ext/spl/php_spl.c:1.75
--- php-src/ext/spl/php_spl.c:1.74 Thu Nov 3 16:58:42 2005
+++ php-src/ext/spl/php_spl.c Thu Nov 3 17:04:35 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_spl.c,v 1.74 2005/11/03 21:58:42 helly Exp $ */
+/* $Id: php_spl.c,v 1.75 2005/11/03 22:04:35 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -393,7 +393,7 @@
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|b", &zcallable,
&do_throw) == FAILURE) {
return;
}
- if (!zend_is_callable_ex(zcallable, 0, &zfunc_name, &alfi.ce, &alfi.func_ptr,
&obj_ptr TSRMLS_CC)) {
+ if (!zend_is_callable_ex(zcallable, IS_CALLABLE_CHECK_IS_STATIC, &zfunc_name, &alfi.ce,
&alfi.func_ptr, &obj_ptr TSRMLS_CC)) {
if (do_throw) {
zend_throw_exception_ex(U_CLASS_ENTRY(spl_ce_LogicException), 0 TSRMLS_CC, "Passed array
does not specify a callable static method");
}