cvs: ZendEngine2 / zend_builtin_functions.c /tests bug32226.phpt

From: Date: Mon, 07 Mar 2005 19:28:10 +0000
Subject: cvs: ZendEngine2 / zend_builtin_functions.c /tests bug32226.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3459@lists.php.net to get a copy of this message
helly Mon Mar 7 14:28:10 2005 EDT Added files: /ZendEngine2/tests bug32226.phpt Modified files: /ZendEngine2 zend_builtin_functions.c Log: - Fix #32226 http://cvs.php.net/diff.php/ZendEngine2/zend_builtin_functions.c?r1=1.258&r2=1.259&ty=u Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.258 ZendEngine2/zend_builtin_functions.c:1.259 --- ZendEngine2/zend_builtin_functions.c:1.258 Mon Feb 28 13:53:33 2005 +++ ZendEngine2/zend_builtin_functions.c Mon Mar 7 14:28:09 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_builtin_functions.c,v 1.258 2005/02/28 18:53:33 helly Exp $ */ +/* $Id: zend_builtin_functions.c,v 1.259 2005/03/07 19:28:09 helly Exp $ */ #include "zend.h" #include "zend_API.h" @@ -1753,7 +1753,7 @@ if (function_name) { add_assoc_string_ex(stack_frame, "function", sizeof("function"), function_name, 1); - if (ptr->object) { + if (ptr->object && Z_TYPE_P(ptr->object) == IS_OBJECT) { class_name = Z_OBJCE(*ptr->object)->name; call_type = "->"; } else if (ptr->function_state.function->common.scope) { http://cvs.php.net/co.php/ZendEngine2/tests/bug32226.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug32226.phpt +++ ZendEngine2/tests/bug32226.phpt --TEST-- Bug # 32226 --FILE-- <? class A { public function A() { set_exception_handler(array($this, 'EH')); throw new Exception(); } public function EH() { restore_exception_handler(); throw new Exception(); } } try { $a = new A(); } catch(Exception $e) { echo "Caught\n"; } ?> ===DONE=== --EXPECT-- Caught ===DONE===

« previous php.zend-engine.cvs (#3459) next »