From: Marcus Boerger Date: Thu, 3 Nov 2005 22:04:35 +0000 (+0000) Subject: - Add missing check flag X-Git-Tag: RELEASE_2_0_1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce939c2cc5501fa0ce5b472bc97a24701495b283;p=php - Add missing check flag --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index a235d2fbd4..955580b6cc 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -393,7 +393,7 @@ PHP_FUNCTION(spl_autoload_register) 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"); }