Re: Re: Infinite Loop / Segfault in ob_*()

From: Date: Sun, 24 Mar 2002 10:43:42 +0000
Subject: Re: Re: Infinite Loop / Segfault in ob_*()
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-81706@lists.php.net to get a copy of this message
At 04:54 PM 3/24/2002, Sebastian Bergmann wrote:
In this callback, I use the ext/xml functions to parse this XML data. Now when, for instance, a parse error occurs, I need to emit an appropriate error messsage, hence I need to stop the output buffering and output something. And, at this point, it segfaults.
Why not just return the error message as the return value? It would give you the same functionality. Messing with the output buffering structures from within the output handler is begging for trouble (we should probably add a bit of wrapper code to handle this gracefully without crashing) Zeev

« previous php.dev (#81706) next »