php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #81431
Patch bug81431.patch revision 2021-09-15 10:03 UTC by twosee@php.net

Patch bug81431.patch for Output Control Bug #81431

Patch version 2021-09-15 10:03 UTC

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

Developer: twosee@php.net

Index: main/output.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/main/output.c b/main/output.c
--- a/main/output.c	(revision b751c24e233945281b08ef15b569a63feb6e0c48)
+++ b/main/output.c	(revision 8be6c44a60d67f3be8466e665336f06fc491e76d)
@@ -1075,7 +1075,7 @@
 	if (context.out.data && context.out.used) {
 		php_output_header();
 
-		if (!(OG(flags) & PHP_OUTPUT_DISABLED)) {
+		if (!(OG(flags) & PHP_OUTPUT_DISABLED) && EG(exception) == NULL) {
 #if PHP_OUTPUT_DEBUG
 			fprintf(stderr, "::: sapi_write('%s', %zu)\n", context.out.data, context.out.used);
 #endif
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC