Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52492 invoked by uid 1010); 22 Dec 2004 22:29:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51907 invoked from network); 22 Dec 2004 22:29:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2004 22:29:11 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.4/2.6 Received: from ([80.74.107.235:49474] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD (r3983)) with SMTP id 7C/F0-16060-035F9C14 for ; Wed, 22 Dec 2004 17:29:09 -0500 Received: (qmail 24868 invoked from network); 22 Dec 2004 22:28:52 -0000 Received: from localhost (HELO andi-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 22 Dec 2004 22:28:52 -0000 Message-ID: <5.1.0.14.2.20041222142706.02653980@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 22 Dec 2004 14:28:47 -0800 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: ReflectionClass::getMethod() From: andi@zend.com (Andi Gutmans) Hi, It seems that in the past few months ReflectionClass::getMethod() was changed to throw an Exception if the method doesn't exist. I don't understand the reasoning because as it's a reflection API I would expect it to return false and not an exception. Exceptions should be thrown for errors. As long as we don't have hasMethod() then I think this behavior is wrong. Can anyone shed some light on this? Why was this changed? Marcus? Thanks, Andi