possible bug in output buffering

From: Date: Sat, 22 Jun 2002 14:07:49 +0000
Subject: possible bug in output buffering
Groups: php.dev 
Request: Send a blank email to php-dev+get-85489@lists.php.net to get a copy of this message
Hi, i'm using output buffering and I have some pbms with it. I don't know if it's a bug or if I misunderstand something. I post this pbm here cause I use the functions introduced in PHP 4.2.1 to manipulate nested ob. Here is a description of the problem : ob_start(); html content in an object : ob_start(); in the same method of this object, an error occured so I call my own error handling function. in my error handling function : ob_end_clean(); // to end the ob_start() opened in my object ob_clean(); // to clean the html content which is in the first ob_start(); html content "an error occured etc" ob_end_flush(); The pbm is that I cannot remove the html content which is in the first ob_start()... I tried with other combinations of ob_end_clean and ob_clean but I still have the pbm or no output at all... Is there anyone here who has the same pbm. Is this a real bug or did I misunderstand how the new functions work ? G.

« previous php.dev (#85489) next »