array_key_exists BC break
| From: | Stanislav Malyshev | Date: | Thu, 23 Oct 2008 20:16:01 +0000 |
| Subject: | array_key_exists BC break | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-41348@lists.php.net to get a copy of this message | ||
Hi!
I notice that 5.3 differs from 5.2 in how array_key_exists treats objects. In 5.2, if the second parameter (array) is allowed to be object and HASH_OF is applied to it. However, in 5.3 it would produce a warning requiring an array if object passed to it. Was it intentional?
Maybe the problem is deeper and is in zend_parse_arg_impl where it should allow objects for 'a' if we can have HASH_OF from them?
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com