iliaa Wed Aug 24 12:20:13 2005 EDT
Modified files: (Branch: PHP_4_4)
/php-src/main output.c
Log:
MFH: Remainder of the 34191 bug fix.
http://cvs.php.net/diff.php/php-src/main/output.c?r1=1.142.2.16&r2=1.142.2.16.2.1&ty=u
Index: php-src/main/output.c
diff -u php-src/main/output.c:1.142.2.16 php-src/main/output.c:1.142.2.16.2.1
--- php-src/main/output.c:1.142.2.16 Wed Oct 20 11:27:25 2004
+++ php-src/main/output.c Wed Aug 24 12:20:12 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: output.c,v 1.142.2.16 2004/10/20 15:27:25 stas Exp $ */
+/* $Id: output.c,v 1.142.2.16.2.1 2005/08/24 16:20:12 iliaa Exp $ */
#include "php.h"
#include "ext/standard/head.h"
@@ -296,6 +296,9 @@
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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php