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 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 with the sta

[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? 'string key'); // '1' will be casted to 1 $arr2 = array(1=>'integer key'); $arr1_uns = unserial