Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70818 invoked by uid 1010); 9 Jul 2005 04:08:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70803 invoked from network); 9 Jul 2005 04:08:09 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2005 04:08:09 -0000 X-Host-Fingerprint: 67.8.0.212 212-0.8-67.tampabay.res.rr.com Received: from ([67.8.0.212:14310] helo=localhost.localdomain) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 39/71-59389-9AD4FC24 for ; Sat, 09 Jul 2005 00:08:09 -0400 Message-ID: <39.71.59389.9AD4FC24@pb1.pair.com> To: internals@lists.php.net Date: Sat, 09 Jul 2005 00:08:03 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 67.8.0.212 Subject: is_callable and method_exists always true when __call is defined From: davey@php.net (Davey Shafik) Dear all, I came across something when I found this bug (http://bugs.php.net/bug.php?id=33621). Should is_callable() and method_exists() always return true when the method doesn't *really* exist? i.e. it would only be called via __call() Is it possible to add an argument to make it only check "real" methods at the very least? Or some way to additionally distinguish between these two things? - Davey