Re: PHP 5.3.8 Released!
| From: | pierre.php@gmail.com | Date: | Wed, 24 Aug 2011 17:56:19 +0000 |
| Subject: | Re: PHP 5.3.8 Released! | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-54886@lists.php.net to get a copy of this message | ||
What are you talking about? The change is exactly about that, change the behavior when a string is
passed.
We are back to the discussion about undeprecating is_a, from scratch...
It hurts codes and apps with 5.3, let do it in 5.4 only.
----- Reply message -----
From: "Stas Malyshev" <smalyshev@sugarcrm.com>
Date: Wed, Aug 24, 2011 19:00
Subject: [PHP-DEV] PHP 5.3.8 Released!
To: "alan@akbkhome.com" <alan@akbkhome.com>
Cc: "internals@lists.php.net" <internals@lists.php.net>
Hi!
On 8/24/11 5:38 AM, alan@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....
So, PEAR has a bug, if it passes non-object argument to is_a, as
previously is_a was only documented (and actually still is) as accepting
objects. The fact that this bug remained for 8 years is very sad, but it
doesn't cease to be a bug.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php