Re: array_key_exists BC break

From: Date: Fri, 21 Nov 2008 20:15:46 +0000
Subject: Re: array_key_exists BC break
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-42015@lists.php.net to get a copy of this message
Hi! > . end > . prev > . next > . reset > . current > . key > . array_key_exists > . array_unique > . array_flip > . array_walk_recursive > . array_walk > . uksort > . uasort > . usort > . natcasesort > . natsort Attached is the patch that should restore BC for all those functions except sorts and array_unique/array_flip (these should be trivial too but I still thing their support for objects is just a bug). Please tell if you are using those (ones not BCed) in any meaningful scenario on objects. This is done by having 'a' and 'h' specifiers have sister ones 'A' and 'H' that would accept objects if those have working HASH_OF. I have opted out for new letters and not sign since signs currently used for generic modifiers (like "separate it") and object-array relation is not generic. Any comments? And last but not least - anybody cares to write tests for those object/array cases? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#42015) next »