Hi Alan,

the breakage is about is_a with a string as 1st argument, not is_a as
a whole. So yes, it breaks is_a alone is used as validation.

On Wed, Aug 24, 2011 at 2:38 PM, a...@akbkhome.com <a...@akbkhome.com> wrote:
> " If it's a clear bug, which IMHO this is_a() issue was - then unless we're
> looking at code breakage at massive scale, it should be fixed. "
>
> mmh.. how much breakage did you want.
>
> PEAR::isError is basically is_a($input, 'PEAR_Error'); it's been like that
> for > 8 years....
>
> google search for PEAR::isError shows 16,600 matches..
>
> http://www.google.com/codesearch#search/&q=PEAR::isError%20lang:php&type=cs
> <http://www.google.com/codesearch#search/&q=PEAR::isError%20lang:php&type=cs>
>
> for is_a you get 149K. and this is only public code...
>
> It's big... Luckily quite a few people are on holiday this month and will
> not upgrade too soon.


-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to