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

From: Date: Sun, 18 May 2003 10:47:00 +0000
Subject: #23679 [Opn->Fbk]: 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-39868@lists.php.net to get a copy of this message
ID: 23679 Updated by: helly@php.net Reported By: ngaugler at ngworld dot net -Status: Open +Status: Feedback Bug Type: Output Control Operating System: FreeBSD PHP Version: 4.3.1 New Comment: Try this: // delete as much output buffers as possible while(@ob_end_clean()); Previous Comments: ------------------------------------------------------------------------ [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 (#39868) next »