Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21414 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54667 invoked by uid 1010); 4 Jan 2006 15:29:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54652 invoked from network); 4 Jan 2006 15:29:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 15:29:44 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:46121] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 74/3B-34518-7E9EBB34 for ; Wed, 04 Jan 2006 10:29:43 -0500 Received: from [192.168.1.3] (dslb-084-063-000-198.pools.arcor-ip.net [84.63.0.198]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id B023235C1D8; Wed, 4 Jan 2006 16:29:39 +0100 (CET) Date: Wed, 4 Jan 2006 16:29:39 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1728947126.20060104162939@marcus-boerger.de> To: Stanislav Malyshev Cc: Lukas Smith , php internals In-Reply-To: References: <20060103205728.GF26280@desario.homelinux.net> <7.0.0.16.2.20060103154506.043678e8@zend.com> <829348376.20060104010548@marcus-boerger.de> <1594973025.20060104122023@marcus-boerger.de> <43BBB6A0.1070800@php.net> <43BBD4F6.6070506@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] __call overload detection From: helly@php.net (Marcus Boerger) Hello Stanislav, how is this a major slowdown? It would add a simple pointer check at runtime and two places to set the pointer, one place will initialize it to NULL and the other will store some function pointer just like all the other __*()'s do. marcus Wednesday, January 4, 2006, 4:13:02 PM, you wrote: LS>>>well in theory is_callable could also be called before __call() to save LS>>>people from having to duplicate the logic from __callable() and to have the LS>>>engine trigger the error. that is what i meant and like i said i do not > That would be major slowdown - why should engine call additional methods? > In 99.99% of cases you don't need it and actually you would _have_ to > duplicate logic - once for handler that checks the callability and once > for the actual __call(). Best regards, Marcus