cvs: ZendEngine2(PHP_5_0) / zend_builtin_functions.c /tests bug32226.phpt

From: Date: Mon, 07 Mar 2005 19:34:03 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_builtin_functions.c /tests bug32226.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3461@lists.php.net to get a copy of this message
helly Mon Mar 7 14:34:03 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug32226.phpt Modified files: /ZendEngine2 zend_builtin_functions.c Log: - MFH http://cvs.php.net/diff.php/ZendEngine2/zend_builtin_functions.c?r1=1.239.2.15&r2=1.239.2.16&ty=u Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.239.2.15 ZendEngine2/zend_builtin_functions.c:1.239.2.16 --- ZendEngine2/zend_builtin_functions.c:1.239.2.15 Tue Feb 1 14:01:50 2005 +++ ZendEngine2/zend_builtin_functions.c Mon Mar 7 14:34:03 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_builtin_functions.c,v 1.239.2.15 2005/02/01 19:01:50 stas Exp $ */ +/* $Id: zend_builtin_functions.c,v 1.239.2.16 2005/03/07 19:34:03 helly Exp $ */ #include "zend.h" #include "zend_API.h" @@ -1737,7 +1737,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 (#3461) next »