php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62887 Only /status?plain&full gives "last request cpu"
Submitted: 2012-08-22 09:17 UTC Modified: 2012-09-27 23:27 UTC
From: jasper at nerdsweide dot nl Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.16 OS: OS X 10.8 (build 12A269)
Private report: No CVE-ID: None
 [2012-08-22 09:17 UTC] jasper at nerdsweide dot nl
Description:
------------
The following status calls don't display the "last request cpu" information:
/status?html&full
/status?json&full
/status?html&full

Only /status?plain&full includes the "last request cpu", but it is always 0.

I tracked this down to the file sapi/fpm/fpm/fpm_status.c
On line 346 this:
    #ifdef HAVE_FPM_LQ
should be:
    #if HAVE_FPM_LQ

But this will also remove "last request cpu" from format "plain" in my case.

As far as I understand it has something to do with <netinet/tcp.h> not supporting "tcp_info" in my system. But I do have a /usr/include/netinet/tcp.h

Expected result:
----------------
To see "last request cpu" when using formats "html", "json" and "xml".
And to see a valid value (in stead of 0) when using format "plain".

Actual result:
--------------
Not seeing "last request cpu" when using formats "html", "json" and "xml".
Always seeing 0 (in stead of a valid value) when using format "plain".

Patches

fpm_status.c.diff (last revision 2012-08-22 09:21 UTC by jasper at nerdsweide dot nl)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-27 23:26 UTC] fat@php.net
-Status: Open +Status: Closed
 [2012-09-27 23:26 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=151b16cf7ff6ddbf2e11932949aaa2ecb0f22724
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2012-09-27 23:26 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9ef925b3519e5b1a54b930035f347e4d0f61a210
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2012-09-27 23:26 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=68eb608f3c639b2f03304e5794cd99f1074b67c0
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2012-09-27 23:27 UTC] fat@php.net
-Assigned To: +Assigned To: fat
 [2012-09-27 23:27 UTC] fat@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-09-28 07:04 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=151b16cf7ff6ddbf2e11932949aaa2ecb0f22724
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2012-09-28 07:05 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9ef925b3519e5b1a54b930035f347e4d0f61a210
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2012-09-28 07:05 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=151b16cf7ff6ddbf2e11932949aaa2ecb0f22724
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2013-11-17 09:32 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=68eb608f3c639b2f03304e5794cd99f1074b67c0
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2014-10-07 23:22 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=9ef925b3519e5b1a54b930035f347e4d0f61a210
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2014-10-07 23:22 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=151b16cf7ff6ddbf2e11932949aaa2ecb0f22724
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=9ef925b3519e5b1a54b930035f347e4d0f61a210
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=151b16cf7ff6ddbf2e11932949aaa2ecb0f22724
Log: - Fixed bug #62887 (Only /status?plain&amp;full gives &quot;last request cpu&quot;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC