Re: Re: Infinite Loop / Segfault in ob_*()
| From: | Sebastian Bergmann | Date: | Sun, 24 Mar 2002 11:42:45 +0000 |
| Subject: | Re: Re: Infinite Loop / Segfault in ob_*() | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81712@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
> Why not just return the error message as the return value? It would
> give you the same functionality.
Yes, this works for the function that calls xml_parse() and needs to
handle XML parser errors.
But I also have to abort the parsing, throw away all generated output
and print an error message in the SAX callbacks. And here I see no
other way than using ob_end_clean().
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/