Re: cvs: phpdoc /en/reference/outcontrol/functions ob-end-clean.xml
| From: | Michael Wallner | Date: | Thu, 11 Jan 2007 14:09:52 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/outcontrol/functions ob-end-clean.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374752@lists.php.net to get a copy of this message | ||
Etienne Kneuss wrote:
> colder Thu Jan 11 12:49:41 2007 UTC
>
> Modified files:
> /phpdoc/en/reference/outcontrol/functions ob-end-clean.xml
> Log:
> improve example
> @@ -35,7 +35,9 @@
> <programlisting role="php">
> <![CDATA[
> <?php
> -while (@ob_end_clean());
> +while (ob_get_level() !== 0) {
> + ob_end_clean();
> +}
Hi, this will generate an infinite loop if there's a non-erasable output handler on the stack.
Regards,
--
Michael