Re: [PHP] serialize() casts numeric string keys to integers

2012-11-12 Thread Adam Richardson
On Mon, Nov 12, 2012 at 2:18 AM, eyal.t eya...@zend.com wrote: Hi all, Was wondering whether the fact that serialize() casts numeric string keys to integers, is a bug, intended behaviour, or just something that is minor enough not to have bothered anyone yet? This behavior is consistent

[PHP] serialize() casts numeric string keys to integers

2012-11-11 Thread eyal . t
Hi all, Was wondering whether the fact that serialize() casts numeric string keys to integers, is a bug, intended behaviour, or just something that is minor enough not to have bothered anyone yet? ?php $arr1 = array('1'='string key'); // '1' will be casted to 1 $arr2 = array(1='integer