Re: Re: is_a() - again - a better fix
| From: | Alan Knowles | Date: | Thu, 22 Sep 2011 23:37:35 +0000 |
| Subject: | Re: Re: is_a() - again - a better fix | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55594@lists.php.net to get a copy of this message | ||
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 <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