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
|