tony2001 Mon Mar 27 08:26:20 2006 UTC Modified files: /php-src/main output.c Log: MF51: fix #36869 (memory leak in output buffering when using chunked output) http://cvs.php.net/viewcvs.cgi/php-src/main/output.c?r1=1.176&r2=1.177&diff_format=u Index: php-src/main/output.c diff -u php-src/main/output.c:1.176 php-src/main/output.c:1.177 --- php-src/main/output.c:1.176 Thu Mar 2 13:12:45 2006 +++ php-src/main/output.c Mon Mar 27 08:26:20 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.176 2006/03/02 13:12:45 dmitry Exp $ */ +/* $Id: output.c,v 1.177 2006/03/27 08:26:20 tony2001 Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -675,11 +675,7 @@ /* If implicit_flush is On or chunked buffering, send contents to next buffer and return. */ if (OG(active_ob_buffer).chunk_size && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) { - zval *output_handler = OG(active_ob_buffer).output_handler; - if (output_handler) { - output_handler->refcount++; - } php_end_ob_buffer(1, 1 TSRMLS_CC); return; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php