Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85441 invoked by uid 1010); 31 Dec 2007 11:43:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85426 invoked from network); 31 Dec 2007 11:43:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2007 11:43:53 -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.186 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.186 rv-out-0910.google.com Received: from [209.85.198.186] ([209.85.198.186:37266] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/4A-02434-9F5D8774 for ; Mon, 31 Dec 2007 06:43:53 -0500 Received: by rv-out-0910.google.com with SMTP id k15so3641187rvb.23 for ; Mon, 31 Dec 2007 03:43:48 -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:references; bh=1EdJZ0EuS/X3m4+qKNVNXhYIDmCwLzx9agT2j+1OpRA=; b=S1eFVutH675x2nxSpPXVNspJsRTGAId+iKvLHRgAz5v/bR18PbwFoiUMkCtMjAGTKHybvvXs/h8kZ2e/tIYFdfm3XUywlTxwvMthK8UAOV2m+6aUFIn1gAhDM9w97wy5zprvbFiPrhxkvZgkw+1R+e9aqf7J+4xt8pGzhhdTBCM= 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:references; b=COl2u+wEZXQGaXt1JPZTXiTPcX9bowicYZ0yw8V773OT6Ao5Z5iuH8VpGrpZqikeIEbC9qDEehxAL9RPtxYFqdYoepwMR7Rl7Pc1ftLKWvkzJ3o7nJGDSo9wwJamJZYlZF0Afncjki7Ni4uI6aVoKrb22MQq3ZK/HejJ4iE5Txw= Received: by 10.143.5.21 with SMTP id h21mr3555908wfi.80.1199101428635; Mon, 31 Dec 2007 03:43:48 -0800 (PST) Received: by 10.142.127.3 with HTTP; Mon, 31 Dec 2007 03:43:48 -0800 (PST) Message-ID: <8697e5310712310343v16f4ec02s2e04f9e608fefaf0@mail.gmail.com> Date: Mon, 31 Dec 2007 12:43:48 +0100 To: internals@lists.php.net In-Reply-To: <20071231113414.GD7861@mint.phcomp.co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20119_20462801.1199101428644" References: <8697e5310712310328n4c0fa235wb5654178028942bd@mail.gmail.com> <20071231113414.GD7861@mint.phcomp.co.uk> Subject: Re: Exceptions instead of Fatal Error when calling non existent method? From: thrthr@gmail.com ("=?ISO-8859-1?Q?Fredrik_Holmstr=F6m?=") ------=_Part_20119_20462801.1199101428644 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline >What is wrong with __call() ? >See: > http://www.php.net/manual/en/language.oop5.overloading.php Hi! Yes, I'm aware of call() but it's very slow. Also it's not feasible to have *all* my classes extend a base class with the a call containing a throw InvalidMethodException, and what if I need to use 3rd party libraries that make use of call in some other way. __call() is a hack, that, at best, work 50% of the time. Regards, Fredrik. ------=_Part_20119_20462801.1199101428644--