Re: Restore output buffer in case of exceptions
| From: | Antony Dovgal | Date: | Sat, 17 Nov 2007 22:41:06 +0000 |
| Subject: | Re: Restore output buffer in case of exceptions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33225@lists.php.net to get a copy of this message | ||
On 18.11.2007 01:36, Mehmet Yavuz Selim Soyturk wrote:
> That is the idea:
>
> <?php
>
> exceptional_ob_start();
>
> echo "Begin\n";
> try {
> echo "Exception\n";
> throw new Exception();
> } catch (Exception $e) {}
> echo "End\n";
>
> exceptional_ob_end_flush();
>
> ?>
>
> And that would be the only output:
>
> Begin
> End
>
Following this logic, we would also need to "unwind" all file descriptors,
database transactions, network connections etc. etc.
This makes no sense.
--
Wbr,
Antony Dovgal