#23679 [Fbk->Opn]: PHP does not protect output buffers created in configs from the script

From: Date: Sun, 18 May 2003 11:51:27 +0000
Subject: #23679 [Fbk->Opn]: PHP does not protect output buffers created in configs from the script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39869@lists.php.net to get a copy of this message
ID: 23679 User updated by: ngaugler at ngworld dot net Reported By: ngaugler at ngworld dot net -Status: Feedback +Status: Open Bug Type: Output Control Operating System: FreeBSD PHP Version: 4.3.1 New Comment: I do not want PHP to delete the buffers. Let me try and re-explain it. When I setup the ob_gzhandler, then I run ob_clean or ob_clean_flush PHP will send a partially gzip'ed page to the browser or inconsistant results and the page will not display properly. What I am suggesting is that if someone sets ob_gzhandler in the PHP.ini, or a situation like this, they cannot clear it out through the script. It is protected. Previous Comments: ------------------------------------------------------------------------ [2003-05-18 05:46:59] helly@php.net Try this: // delete as much output buffers as possible while(@ob_end_clean()); ------------------------------------------------------------------------ [2003-05-18 04:40:49] ngaugler at ngworld dot net PHP does not protect output_buffers created via configs through the output_buffer, output_handler configurations from individual scripts. If you configure your php.ini to have output_handler = ob_gzhandler then run ob_clean() or ob_end_clean() odd results happen and the page does not properly send. I think PHP should protect buffers created before the script is executed so that the individual may not destroy them. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23679&edit=1

« previous php.bugs (#39869) next »