Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25757 invoked from network); 22 Sep 2011 23:40:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2011 23:40:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=alan@akbkhome.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alan@akbkhome.com; 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:36411] helo=246-113.netfront.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/87-11679-B67CB7E4 for ; Thu, 22 Sep 2011 19:40:28 -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 1R6spr-0002I4-Hm for internals@lists.php.net; Fri, 23 Sep 2011 07:37:49 +0800 Message-ID: <4E7BC6BF.6080702@akbkhome.com> Date: Fri, 23 Sep 2011 07:37:35 +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: internals@lists.php.net References: <4E790B82.6090805@akbkhome.com> <8C.A0.17510.E4DE97E4@pb1.pair.com> <1316615094.2810.5.camel@guybrush> <1316629502-sup-831@fewbar.com> <20110922134956.GA28577@panix.com> <1316709104-sup-2744@fewbar.com> <1316713382.1290.60.camel@guybrush> <4E7BBA23.2080001@lerdorf.com> In-Reply-To: <4E7BBA23.2080001@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-mailfort-sig: 6988cbb2d913262c1e85ea9c3d88f06c Subject: Re: [PHP-DEV] Re: is_a() - again - a better fix From: alan@akbkhome.com (Alan Knowles) This patch adds an extra parameter 'allow_string' to is_a (default off) and is_subclass_of (default on) , https://bugs.php.net/patch-display.php?bug_id=55475&patch=Is_a_with_allow_string_argument_v3&revision=latest It also explains why their behaviour is different. This is a clean, no BC break, solution. let's move on and just fix this. Regards Alan On Friday, September 23, 2011 06:43 AM, Rasmus Lerdorf wrote: > I don't see the harm in reverting back to the previous behaviour in the > 5.3 tree. It's not like it will break code that has been fixed to work > with the new behaviour. > > -Rasmus > >