From: Marcus Boerger Date: Thu, 3 Nov 2005 21:28:16 +0000 (+0000) Subject: - Add missing check X-Git-Tag: RELEASE_2_0_1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3243167b4519ba0bb65cfc9e69555662bc293371;p=php - Add missing check --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 66c8ca06c7..c3c16a700a 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -399,7 +399,7 @@ PHP_FUNCTION(spl_autoload_register) } zval_dtor(&zfunc_name); return; - } else if (!obj_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { + } else if (!obj_ptr && alfi.func_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { if (do_throw) { zend_throw_exception_ex(U_CLASS_ENTRY(spl_ce_LogicException), 0 TSRMLS_CC, "Passed array specifies a non static method but no object"); }