Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39400 invoked by uid 1010); 10 Jan 2006 21:56:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39385 invoked from network); 10 Jan 2006 21:56:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2006 21:56:26 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:5046] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 1E/BA-27796-98D24C34 for ; Tue, 10 Jan 2006 16:56:26 -0500 Received: (qmail 19758 invoked from network); 10 Jan 2006 21:56:22 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 10 Jan 2006 21:56:22 -0000 Message-ID: <43C42D85.6060605@zend.com> Date: Wed, 11 Jan 2006 00:56:21 +0300 User-Agent: Thunderbird 1.5 (X11/20051025) MIME-Version: 1.0 To: Marcus Boerger CC: php-dev References: <43C3B9E0.9010502@zend.com> <10410208601.20060110224128@marcus-boerger.de> In-Reply-To: <10410208601.20060110224128@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Exception::fillException() proposal From: antony@zend.com (Antony Dovgal) On 11.01.2006 00:41, Marcus Boerger wrote: > Hello Antony, > > in general modifying exception data is vey dangerous because first it > leads to confusion on the usage part and second it might lead to sever > problems in the engine facilities that deal with them. That this in a > few cases worked does not mean it works in all cases it mybe be used. Actually, the code doesn't modify any data there, but copies it instead. That is: create new object, copy data from the old one, update few properties. > To prevent us from adding all the stuff Java invented to deal more > gracefull with exceptions starting with the ability to handle more than > one exception at a time i would like to stay with the KISS approach and > have them as easy as possible. I realize that it's relatively easy to implement this in PHP, but in the same time I don't see in what way adding this function violates the KISS approach. Could you plz elaborate? -- Wbr, Antony Dovgal