Mantis - Quercus
Viewing Issue Advanced Details
4144 minor always 07-28-10 08:16 07-28-10 08:16
sblommers  
 
normal  
new  
open  
none    
none  
0004144: Typecasting (array) is not taking the whole object tree to array
$test = (object)"test";
$obj = (object) array('property' => $test);
$array = (array)$obj;
echo json_encode($array);
var_dump($array);
$test = (object)"test";
$obj = (object) array('property' => $test);
$array = (array)$obj;
echo json_encode($array);
var_dump($array);

There are no notes attached to this issue.