iliaa Wed Aug 24 12:19:49 2005 EDT Modified files: /php-src/main output.c Log: Remainder of the 34191 bug fix. http://cvs.php.net/diff.php/php-src/main/output.c?r1=1.170&r2=1.171&ty=u Index: php-src/main/output.c diff -u php-src/main/output.c:1.170 php-src/main/output.c:1.171 --- php-src/main/output.c:1.170 Mon Aug 22 08:22:16 2005 +++ php-src/main/output.c Wed Aug 24 12:19:47 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.170 2005/08/22 12:22:16 dmitry Exp $ */ +/* $Id: output.c,v 1.171 2005/08/24 16:19:47 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