Mantis - Quercus
Viewing Issue Advanced Details
3197 minor always 12-27-08 22:08 12-28-08 21:50
koreth  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003197: json_decode fails on empty objects
<?php
print_r(json_decode('{"x":{}}'));

Regular PHP prints "stdClass Object ( [x] => stdClass Object ( ) )". Quercus prints "Warning: error parsing '}': expected no more input [json_decode]".

Notes
(0003679)
ferg   
12-28-08 21:50   
php/4737