Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21425 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75309 invoked by uid 1010); 4 Jan 2006 22:20:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75294 invoked from network); 4 Jan 2006 22:20:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 22:20:50 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:2441] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6C/E7-34518-14A4CB34 for ; Wed, 04 Jan 2006 17:20:49 -0500 Received: from localhost ([127.0.0.1] helo=peiscg33m) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1EuG8i-0004qi-00; Wed, 04 Jan 2006 13:25:48 -0800 Message-ID: <007001c6117d$1ba7e510$5c8be5a9@ohr.berkeley.edu> Reply-To: "Sara Golemon" To: "Andrew Yochum" Cc: References: <20060103205728.GF26280@desario.homelinux.net> Date: Wed, 4 Jan 2006 14:20:45 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: Re: __call overload detection From: pollita@php.net ("Sara Golemon") > 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. > This'll do what you want: http://libssh2.org/dist/callable-1.0.tgz It's PEAR packaged so compiling/installing should be simple enough.... Dunno if it's worth dropping into PECL though... -Sara