Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45074 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95860 invoked from network); 24 Jul 2009 13:54:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2009 13:54:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.210 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.220.210 mail-fx0-f210.google.com Received: from [209.85.220.210] ([209.85.220.210:60390] helo=mail-fx0-f210.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/BA-39659-F0DB96A4 for ; Fri, 24 Jul 2009 09:54:23 -0400 Received: by fxm6 with SMTP id 6so1485951fxm.23 for ; Fri, 24 Jul 2009 06:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=CqgbHP/48JuG0bYZJe+kB0tAHwzyTEPJhCgEyEGnSrI=; b=hgc8CBlE9ecsrtoys8LH6yFR9oEIHyC5XhxTXVdhOz4JVO8GuF7JaOanbjpcsNN+Z5 N5zaloXLzjI4K9PWUKOWBpwX1eBN9n6Ry485UvyOuRYv5lVsbfKrYjMKpmbbQjlxpJ25 d3JMIYqka9enRG/agmhmbEYFUtdItdHlgso4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=xm8ikfydSdMk3yqS7P4jTXMg7cZJEPZshw2hRwkklA80ZbDsEzfeS4sbNZEMcw522o Qqa570Inf9zyfCVp1l8PsO7CtFWJT7udq9pmOkqu9O9qslHFRJ+CdUBrBWQ8t4DYFPkS cWSUzYoYL1/mNQQrx66VDCEgm7SxHUavSiBro= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.86.58.9 with SMTP id g9mr3061661fga.18.1248443660624; Fri, 24 Jul 2009 06:54:20 -0700 (PDT) In-Reply-To: References: <2dedb8a0907240640i118d220fte7ed4e0285aae024@mail.gmail.com> Date: Fri, 24 Jul 2009 15:54:20 +0200 X-Google-Sender-Auth: 5596c83bba83547f Message-ID: <2dedb8a0907240654n59a4376ax552fb59f9ec4a5f6@mail.gmail.com> To: "Ben Scholzen 'DASPRiD'" Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Replacing errors with Exceptions From: kalle@php.net (Kalle Sommer Nielsen) Please don't top post 2009/7/24 Ben Scholzen 'DASPRiD' : > To you both, this is especially, for library code like Zend Framework. > The library cannot expect the user to have the error handle set, so it > would have to replace the error handler before every line which it wants > to try {} and reset it after the catch. This is not really a clean > solution, at it can occur pretty often. Then ZF should provide an error handler that can be called inside the user's error handler or simply choose to not use error handlers if the user have a custom error handler. I can't really see why the whole language should change into using exceptions by default because of something like this? -- regrads, Kalle Sommer Nielsen kalle@php.net