Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80369 invoked by uid 1010); 4 Jan 2006 00:05:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80354 invoked from network); 4 Jan 2006 00:05:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 00:05:34 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:44210] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AE/8E-34518-D411BB34 for ; Tue, 03 Jan 2006 19:05:33 -0500 Received: from [192.168.1.3] (dslb-084-063-009-174.pools.arcor-ip.net [84.63.9.174]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 2473635C1B6; Wed, 4 Jan 2006 01:05:29 +0100 (CET) Date: Wed, 4 Jan 2006 01:05:48 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <829348376.20060104010548@marcus-boerger.de> To: Andi Gutmans Cc: Andrew Yochum , php internals In-Reply-To: <7.0.0.16.2.20060103154506.043678e8@zend.com> References: <20060103205728.GF26280@desario.homelinux.net> <7.0.0.16.2.20060103154506.043678e8@zend.com> 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 Andi, the point is probably that there is no way in determinig whether a certain function is supposed to work prior to calling it. regards marcus Wednesday, January 4, 2006, 12:45:23 AM, you wrote: > Why not just use Reflection API to check? It seems quite trivial to do so. > At 12:57 PM 1/3/2006, Andrew Yochum wrote: >>Currently there is no way to detect if the __call overloads a particular >>method. Property overloading has __isset now in 5.1 - maybe for method >>overloading the equivalent should be something like __iscallable. Maybe >>method_exists should remain as is, as the method won't ever really exist >>but is_callable would/could use it, or perhaps some new function. >> >>Is this a reasonable request? Thoughts? >> >>Regards, >>Andrew >>-- >>Andrew Yochum >>Plexpod >>andrew@plexpod.com >>718-360-0879 >> >>-- >>PHP Internals - PHP Runtime Development Mailing List >>To unsubscribe, visit: http://www.php.net/unsub.php Best regards, Marcus