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();

You can do it, I think - just another bufferign inside try() and clean it on exception, then output it after try block ends. Buffers are stackable in PHP.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to