From:             
Operating system: Ubuntu
PHP version:      5.3.5
Package:          Apache2 related
Bug Type:         Bug
Bug description:json_decode can not handle data like {"A":0000}, but {"A":0} is 
fine

Description:
------------
I have json data to decode using php api: json_decode(), 

But I found if there is a number of 0000 instead of 0. Such 

API will case thread of apache2 take 100% of cpu resource for about 

1 mins. 



I know 0000 is the legal number, but I think there should be a way to 

indicate that apache cannot handle, instead of just running exhausted.



Hoping this is useful for other developer. 

Thanks a lot.

Expected result:
----------------
Send some warning information.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=54010&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54010&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54010&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54010&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54010&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54010&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54010&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54010&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54010&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54010&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54010&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54010&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54010&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54010&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54010&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54010&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54010&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54010&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54010&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54010&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54010&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54010&r=mysqlcfg

Reply via email to