cvs: ZendEngine2 / zend.c

From: Date: Tue, 05 Nov 2002 06:10:05 +0000
Subject: cvs: ZendEngine2 / zend.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-552@lists.php.net to get a copy of this message
ssb Tue Nov 5 01:10:05 2002 EDT Modified files: /ZendEngine2 zend.c Log: Fixed some special cases that were crashing for the exception default handler. Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.188 ZendEngine2/zend.c:1.189 --- ZendEngine2/zend.c:1.188 Sat Nov 2 04:05:18 2002 +++ ZendEngine2/zend.c Tue Nov 5 01:10:05 2002 @@ -870,7 +870,13 @@ params[0] = &EG(exception); orig_user_exception_handler = EG(user_exception_handler); if (call_user_function_ex(CG(function_table), NULL, orig_user_exception_handler, &retval2, 1, params, 1, NULL TSRMLS_CC) == SUCCESS) { - zval_ptr_dtor(&retval2); + if (retval2 != NULL) { + zval_ptr_dtor(&retval2); + } + } else { + zval_ptr_dtor(&EG(exception)); + EG(exception) = NULL; + zend_error(E_ERROR, "Uncaught exception!"); } efree(params); zval_ptr_dtor(&EG(exception)); @@ -880,7 +886,7 @@ EG(exception) = NULL; zend_error(E_ERROR, "Uncaught exception!"); } - if (!retval) { + if (retval == NULL && *EG(return_value_ptr_ptr) != NULL) { zval_ptr_dtor(EG(return_value_ptr_ptr)); local_retval = NULL; }

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