php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61767
Patch bug61767.diff revision 2012-09-05 08:14 UTC by dmitry@php.net
Patch another_fix_for_bug61767.patch revision 2012-04-20 09:50 UTC by laruence@php.net
Patch bug61767.patch revision 2012-04-20 06:01 UTC by laruence@php.net

Patch another_fix_for_bug61767.patch for Scripting Engine problem Bug #61767

Patch version 2012-04-20 09:50 UTC

Return to Bug #61767 | Download this patch
Patch Revisions:

Developer: laruence@php.net

diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 528e4f6..45b0aff 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -4973,6 +4973,12 @@ static int user_shutdown_function_call(php_shutdown_function_entry *shutdown_fun
 		efree(function_name);
 	}
 
+	if (EG(exception)) {
+	    /* @FIXME: see #61767 and #60909 */
+		zval_ptr_dtor(&EG(exception));
+		EG(exception) = NULL;
+	}
+
 	if (call_user_function(EG(function_table), NULL,
 				shutdown_function_entry->arguments[0],
 				&retval,
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC