From: Ilia Alshanetsky Date: Wed, 24 Aug 2005 16:19:57 +0000 (+0000) Subject: MFH: Remainder of the 34191 bug fix. X-Git-Tag: php-5.1.0RC2_PRE~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30b14ee8e996913622f1bdaea239de14ef3a41d7;p=php MFH: Remainder of the 34191 bug fix. --- diff --git a/main/output.c b/main/output.c index b197cb48b5..6880ada6a2 100644 --- a/main/output.c +++ b/main/output.c @@ -294,6 +294,9 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS OG(ob_nesting_level)--; if (send_buffer) { + if (just_flush) { /* if flush is called prior to proper end, ensure presence of NUL */ + final_buffer[final_buffer_length] = '\0'; + } OG(php_body_write)(final_buffer, final_buffer_length TSRMLS_CC); }