helly Thu Nov 3 16:28:30 2005 EDT Modified files: /php-src/ext/spl php_spl.c Log: - Add missing check http://cvs.php.net/diff.php/php-src/ext/spl/php_spl.c?r1=1.72&r2=1.73&ty=u Index: php-src/ext/spl/php_spl.c diff -u php-src/ext/spl/php_spl.c:1.72 php-src/ext/spl/php_spl.c:1.73 --- php-src/ext/spl/php_spl.c:1.72 Sat Oct 29 11:10:55 2005 +++ php-src/ext/spl/php_spl.c Thu Nov 3 16:28:16 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_spl.c,v 1.72 2005/10/29 15:10:55 helly Exp $ */ +/* $Id: php_spl.c,v 1.73 2005/11/03 21:28:16 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -399,7 +399,7 @@ } 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"); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php