note 97366 deleted from function.xmlrpc-encode by danbrown

From: Date: Fri, 16 Apr 2010 00:41:22 +0000
Subject: note 97366 deleted from function.xmlrpc-encode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168308@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Many people have complained about the indexed array bug. Will this bug ever be fixed? $a=array(1=>'one', '3'=>'three', 5=>'five', 'a'=>'foo'); print_r($a); print_r(xmlrpc_decode(xmlrpc_encode($a))); Returns: Array ( [1] => one [3] => three [5] => five [a] => foo ) Array ( [0] => one [1] => three [2] => five [a] => foo ) The keys are lost if they have a numeric value even if they are set to type string. There was said that it wont be fixed: http://bugs.php.net/21949 http://bugs.php.net/37746 There was said that it was fixed: http://bugs.php.net/50285 However it wasn't fixed I still have the problem on PHP 5.3.1.

« previous php.notes (#168308) next »