Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33229 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53231 invoked by uid 1010); 18 Nov 2007 01:06:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53216 invoked from network); 18 Nov 2007 01:06:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2007 01:06:25 -0000 X-Host-Fingerprint: 24.228.86.142 ool-18e4568e.dyn.optonline.net Received: from [24.228.86.142] ([24.228.86.142:25342] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/D4-14070-0109F374 for ; Sat, 17 Nov 2007 20:06:25 -0500 Message-ID: To: internals@lists.php.net Date: Sat, 17 Nov 2007 20:06:16 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 References: <1abd9eb20711171436w4b797bffu4cab758407beebf6@mail.gmail.com> <473F8996.9010807@rooftopsolutions.nl> In-Reply-To: <473F8996.9010807@rooftopsolutions.nl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Posted-By: 24.228.86.142 Subject: Re: [PHP-DEV] Restore output buffer in case of exceptions From: edwardzyang@thewritingpot.com ("Edward Z. Yang") Evert | Rooftop wrote: > Generally I make sure that the parts of my code that start an output > buffer are also responsible for closing the output buffer.. so something > like this wouldn't be uncommon in my code.. Agreed. If you'd like to implement transaction support using PHP's exceptions, you'll need to implement rollback functionality yourself in the catch block. -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]