Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7658 invoked by uid 1010); 31 Dec 2007 13:01:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7641 invoked from network); 31 Dec 2007 13:01:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2007 13:01:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=thrthr@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=thrthr@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.191 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: thrthr@gmail.com X-Host-Fingerprint: 209.85.198.191 rv-out-0910.google.com Received: from [209.85.198.191] ([209.85.198.191:53272] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/2E-02434-628E8774 for ; Mon, 31 Dec 2007 08:01:30 -0500 Received: by rv-out-0910.google.com with SMTP id k15so3661388rvb.23 for ; Mon, 31 Dec 2007 05:01:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=URqbmFOJdgi8zbAyb3twdrCBOy+MN/wODTP7BpLXBT8=; b=EZGTvjlNdnUZiXwaGTzl0In/zxBVArkQlcJ/u/qCsJzXiNEc5+nfYJ4Z/H6LT933Y1J5bhlOhh/rivEcE6ilTm5qo6qXmFpvgaefHQGQVvqMesWdfc70dmOoRYlvHm7PAsk/X5x73iDQFabBRkp0d3SC3+QdLcSjyMNlmvZ+II8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l45xzc1bA3kGeZF7dckZmloA9QhLGA6PU5gfU6mTtiZLp8dmbLJSKtk1gVBxbZALi/6NG4AN5V6qwLJRZzEf3zm7GDEFMopxppDjfFII7kNFUXqwTtZmKgewJsYvvvFOECGqwRegdh3OdPINJnHnztUTMDi2PL4RdEwVqOSBcMY= Received: by 10.143.49.2 with SMTP id b2mr3545717wfk.205.1199106085552; Mon, 31 Dec 2007 05:01:25 -0800 (PST) Received: by 10.142.127.3 with HTTP; Mon, 31 Dec 2007 05:01:25 -0800 (PST) Message-ID: <8697e5310712310501g49726d6fr5e7dd58c332945a0@mail.gmail.com> Date: Mon, 31 Dec 2007 14:01:25 +0100 To: internals@lists.php.net In-Reply-To: <4778E534.1040506@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8697e5310712310328n4c0fa235wb5654178028942bd@mail.gmail.com> <20071231113414.GD7861@mint.phcomp.co.uk> <8697e5310712310343v16f4ec02s2e04f9e608fefaf0@mail.gmail.com> <8cf711460712310358l3bd6b5b5sb90fc1e328561d51@mail.gmail.com> <8697e5310712310409u289e643fo5d0b579a4fbd3311@mail.gmail.com> <4778E534.1040506@daylessday.org> Subject: Re: [PHP-DEV] Re: Exceptions instead of Fatal Error when calling non existent method? From: thrthr@gmail.com ("=?ISO-8859-1?Q?Fredrik_Holmstr=F6m?=") > There is no need to implement __call() in every class,. > Just make sure their parent class implements it. Yes, I'm well aware of that - but that doesn't really help when taking into account 3rd party libraries or places where it's not possible because you don't have control over the base class. > Changing PHP's behavior in a backward-incompatible way that would affect > everyone and *forcing everyone* to use exceptions seems to be really bad > idea, especially taking into account that your problem can be easily solved > without it. In my original post I proposed several ways that would not be backwards incompatible, and maybe I put the subject on the original message wrong - the key here isn't really exceptions but the ability to handle unknown method calls without taking the entire process down with it. Anyway this will be my last post on the subject since I don't want to spam the list and I think I've expressed all my opinions about it clearly. Regards, Fredrik.