Bug #64539 [NEW]: FPM status page: JSON parse error
| From: | benpro at benpro dot fr | Date: | Thu, 28 Mar 2013 13:03:53 +0000 |
| Subject: | Bug #64539 [NEW]: FPM status page: JSON parse error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-178163@lists.php.net to get a copy of this message | ||
From: benpro at benpro dot fr
Operating system: Debian 6.0.6
PHP version: 5.3.23
Package: Unknown/Other Function
Bug Type: Bug
Bug description:FPM status page: JSON parse error
Description:
------------
Trying to set up a FPM status page using this one:
http://git.php.net/?p=php-src.git;a=blob;f=sapi/fpm/status.html.in;h=86492d73df0710d5dd0a0550292b3b48bbbfc302;hb=HEAD
I got "Error while parsing json: 'SyntaxError: JSON.parse: bad escaped
character':
{
"pool": "www",
"process manager": "dynamic",
"start time": 1364474757,
"start since": 623,
"accepted conn": 1998,
"listen queue": 0,
"max listen queue": 0,
"listen queue len": 0,
"idle processes": 135,
"active processes": 2,
"total processes": 137,
"max active processes": 9,
"max children reached": 0,
"processes": [{
"pid": 32124,
"state": "Idle",
"start time": 1364474757,
"start since": 623,
"requests": 15,
"request duration": 2262,
"request method": "GET",
"request uri":
"/hidden/timthumb.php?src=http://hidden.fr/wp-content/uploads/2012/10/vitrolles-640x426.jpg&q=100&w=220&h=160&text=Pas+d\'image+pour+le+moment",
<<< Here is the bug?
"content length": 0,
"user": "-",
"script": "/hidden/timthumb.php",
"last request cpu": 0.00,
"last request memory": 1310720
}, OTHER....]
}
Sound like the JSON output of the status using "?json" in the query string
is badly escaped?
Expected result:
----------------
Good parsing.
Actual result:
--------------
Parse error.
--
Edit bug report at https://bugs.php.net/bug.php?id=64539&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64539&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64539&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64539&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64539&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64539&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64539&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64539&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64539&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64539&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64539&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64539&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64539&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64539&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64539&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64539&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64539&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64539&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64539&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64539&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64539&r=mysqlcfg