Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28377 invoked by uid 1010); 17 Nov 2007 22:36:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28362 invoked from network); 17 Nov 2007 22:36:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2007 22:36:18 -0000 Authentication-Results: pb1.pair.com header.from=mehmet.yavuz.selim@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mehmet.yavuz.selim@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mehmet.yavuz.selim@gmail.com X-Host-Fingerprint: 209.85.198.188 rv-out-0910.google.com Received: from [209.85.198.188] ([209.85.198.188:21563] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/71-14070-1EC6F374 for ; Sat, 17 Nov 2007 17:36:18 -0500 Received: by rv-out-0910.google.com with SMTP id k15so1035660rvb for ; Sat, 17 Nov 2007 14:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=A6iYr33d4xve2BqvRCIUnF8pepugwRp+UUHQDi5HfYo=; b=a8yE/81YBgORBY7LApP9ir8QwcVRCMxTeGYrHOeGtO90MicOPN5mwqMwnVa0MygABz0PWAkovBgQeAVZOXIk663JEq1pvDHCaPzA8ly0I+PWlNSKNs8Bew5r7EpGxthmKQEWhMASFbhJvimUyFy16y36kzFkPQtAH0HEWK1L04U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Xzxd1geVK5NKY0NGab25d4A6uEMieAXkuQ2EBQ2kkHO0L63riibgoVP4TZZwJMhFc1HTux+BPIoesXLPpH9MMCqRPqyt4ZAx5Pv3NSSrMo2PUCLw1hsafSmyXPYSRAMoK5txeUW/Dep2k7thzavTXxLEBDovCxjBM2o7h6LcEXU= Received: by 10.115.60.1 with SMTP id n1mr264997wak.1195338974291; Sat, 17 Nov 2007 14:36:14 -0800 (PST) Received: by 10.114.59.16 with HTTP; Sat, 17 Nov 2007 14:36:14 -0800 (PST) Message-ID: <1abd9eb20711171436w4b797bffu4cab758407beebf6@mail.gmail.com> Date: Sat, 17 Nov 2007 23:36:14 +0100 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Restore output buffer in case of exceptions From: mehmet.yavuz.selim@gmail.com ("Mehmet Yavuz Selim Soyturk") Hello, I'm sorry if that's the wrong list. I am neither a PHP nor a webscripting guy so I'm sorry if this does not make sense. I just thought that it could be useful. PHP 5 supports exception handling. When an exception occurs, PHP does stack unwinding so that it restores the state of the script. But an important state of the script does not get restored: the output. Would it not be a good idea if PHP also did some sort of output buffer unwinding? That is the idea: And that would be the only output: Begin End