Mantis - Quercus
Viewing Issue Advanced Details
3201 minor always 12-28-08 23:56 12-29-08 09:26
koreth  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003201: json_decode fails on empty objects when creating associative arrays
Related to bug 3197:

<?php
print_r(json_decode('{"x":{}}', true));

The bug ("Warning: error parsing '}': expected no more input") is fixed when the second argument to json_decode is set to false or removed, but is still present when it's set to true.

Notes
(0003680)
ferg   
12-29-08 09:26   
php/4738