cvs: php-src /main output.c

From: Date: Fri, 08 Aug 2003 23:43:45 +0000
Subject: cvs: php-src /main output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23017@lists.php.net to get a copy of this message
iliaa Fri Aug 8 19:43:45 2003 EDT Modified files: /php-src/main output.c Log: Fixed bug #24951 (ob_flush() needlessly destroys output handler). Index: php-src/main/output.c diff -u php-src/main/output.c:1.161 php-src/main/output.c:1.162 --- php-src/main/output.c:1.161 Thu Jul 31 15:46:03 2003 +++ php-src/main/output.c Fri Aug 8 19:43:45 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.161 2003/07/31 19:46:03 iliaa Exp $ */ +/* $Id: output.c,v 1.162 2003/08/08 23:43:45 iliaa Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -247,7 +247,9 @@ } } OG(ob_lock) = 0; - zval_ptr_dtor(&OG(active_ob_buffer).output_handler); + if (!just_flush) { + zval_ptr_dtor(&OG(active_ob_buffer).output_handler); + } orig_buffer->refcount -=2; if (orig_buffer->refcount <= 0) { /* free the zval */ zval_dtor(orig_buffer);

« previous php.cvs (#23017) next »