Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88710 invoked by uid 1010); 4 Jan 2006 16:28:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88695 invoked from network); 4 Jan 2006 16:28:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 16:28:06 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:45292] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D5/5D-34518-597FBB34 for ; Wed, 04 Jan 2006 11:28:06 -0500 Received: (qmail 24419 invoked from network); 4 Jan 2006 16:28:01 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 4 Jan 2006 16:28:01 -0000 Date: Wed, 4 Jan 2006 18:28:01 +0200 (IST) X-X-Sender: frodo@shire.zend.office To: Marcus Boerger cc: Lukas Smith , php internals In-Reply-To: <1728947126.20060104162939@marcus-boerger.de> Message-ID: 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> <1728947126.20060104162939@marcus-boerger.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] __call overload detection From: stas@zend.com (Stanislav Malyshev) MB>> how is this a major slowdown? It would add a simple pointer check at MB>>runtime and two places to set the pointer, one place will initialize it to MB>>NULL and the other will store some function pointer just like all the other MB>>__*()'s do. You would have two PHP functions: __callable() and __call() which would both be called and do the same logic on function call. You can not use "some function pointer" from PHP. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115