php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch headerCallback.patch for Reproducible crash Bug #61106

Patch version 2012-02-16 16:53 UTC

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

Developer: nikic

diff --git a/main/SAPI.c b/main/SAPI.c
index 7ad235e..74fdbb2 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -494,9 +494,6 @@ static void sapi_send_headers_free(TSRMLS_D)
 SAPI_API void sapi_deactivate(TSRMLS_D)
 {
 	zend_llist_destroy(&SG(sapi_headers).headers);
-	if (SG(callback_func)) {
-		zval_ptr_dtor(&SG(callback_func));
-	}
 	if (SG(request_info).post_data) {
 		efree(SG(request_info).post_data);
 	}  else 	if (SG(server_context)) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC