iliaa Wed Aug 24 12:20:06 2005 EDT Modified files: (Branch: PHP_5_0) /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.164.2.1&r2=1.164.2.2&ty=u Index: php-src/main/output.c diff -u php-src/main/output.c:1.164.2.1 php-src/main/output.c:1.164.2.2 --- php-src/main/output.c:1.164.2.1 Thu Apr 28 10:20:56 2005 +++ php-src/main/output.c Wed Aug 24 12:20:06 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.164.2.1 2005/04/28 14:20:56 tony2001 Exp $ */ +/* $Id: output.c,v 1.164.2.2 2005/08/24 16:20:06 iliaa Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -294,6 +294,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