Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17054 invoked from network); 20 Sep 2011 21:54:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2011 21:54:22 -0000 Authentication-Results: pb1.pair.com header.from=alan@akbkhome.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alan@akbkhome.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain akbkhome.com designates 202.81.246.113 as permitted sender) X-PHP-List-Original-Sender: alan@akbkhome.com X-Host-Fingerprint: 202.81.246.113 246-113.netfront.net Received: from [202.81.246.113] ([202.81.246.113:47340] helo=246-113.netfront.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/91-04794-D8B097E4 for ; Tue, 20 Sep 2011 17:54:21 -0400 Received: from wideboyhd.local ([192.168.0.28]) by akbkhome.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Mailfort v1.2) (envelope-from ) id 1R68Ge-0001EK-PM for internals@lists.php.net; Wed, 21 Sep 2011 05:54:16 +0800 Message-ID: <4E790B82.6090805@akbkhome.com> Date: Wed, 21 Sep 2011 05:54:10 +0800 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-mailfort-sig: bfab8864e38ee3825f0f63c7b1bd58e5 Subject: is_a() - again - a better fix From: alan@akbkhome.com (Alan Knowles) Let's try and close this one. https://bugs.php.net/bug.php?id=55475 I've just added a patch that adds is_class_of(), which is identical to is_subclass_of, and has the new feature of supporting strings and using the autoloader. It then reverts is_a() back to the previous behavior, and clarifies the documentation. This solves the BC issues, and also solves potential security issues with existing code accidentally passing $url's to the autoloader, and gives anyone who needs this new behavior a solution. Let's at least try and respect the new release RFC, and our users who appreciate PHP's efforts over the years to try and maintain BC. (it's one of it's few advantages these days...) Regards Alan