From: Jerome Loyet Date: Thu, 27 Sep 2012 23:25:51 +0000 (+0200) Subject: - Fixed bug #62887 (Only /status?plain&full gives "last request cpu") X-Git-Tag: php-5.4.8RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ef925b3519e5b1a54b930035f347e4d0f61a210;p=php - Fixed bug #62887 (Only /status?plain&full gives "last request cpu") --- diff --git a/NEWS b/NEWS index 199a2fbf2c..d93d9583ce 100644 --- a/NEWS +++ b/NEWS @@ -35,6 +35,7 @@ PHP NEWS . Fixed bug #62886 (PHP-FPM may segfault/hang on startup). (fat) . Fixed bug #63085 (Systemd integration and daemonize). (remi, fat) . Fixed bug #62947 (Unneccesary warnings on FPM). (fat) + . Fixed bug #62887 (Only /status?plain&full gives "last request cpu"). (fat) - OpenSSL: . Implemented FR #61421 (OpenSSL signature verification missing RMD160, diff --git a/sapi/fpm/fpm/fpm_status.c b/sapi/fpm/fpm/fpm_status.c index b9b9a8c0b6..2363b57f80 100644 --- a/sapi/fpm/fpm/fpm_status.c +++ b/sapi/fpm/fpm/fpm_status.c @@ -148,7 +148,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "start time%s\n" "start since%lu\n" "accepted conn%lu\n" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "listen queue%u\n" "max listen queue%u\n" "listen queue len%d\n" @@ -178,7 +178,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "content length" "user" "script" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "last request cpu" #endif "last request memory" @@ -197,7 +197,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "%zu" "%s" "%s" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "%.2f" #endif "%zu" @@ -220,7 +220,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "%s\n" "%lu\n" "%lu\n" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "%u\n" "%u\n" "%d\n" @@ -249,7 +249,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "%zu" "%s" "" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "%.2f" #endif "%zu" @@ -270,7 +270,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "\"start time\":%s," "\"start since\":%lu," "\"accepted conn\":%lu," -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "\"listen queue\":%u," "\"max listen queue\":%u," "\"listen queue len\":%d," @@ -300,7 +300,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "\"content length\":%zu," "\"user\":\"%s\"," "\"script\":\"%s\"," -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "\"last request cpu\":%.2f," #endif "\"last request memory\":%zu" @@ -320,7 +320,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ "start time: %s\n" "start since: %lu\n" "accepted conn: %lu\n" -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ "listen queue: %u\n" "max listen queue: %u\n" "listen queue len: %d\n" @@ -362,7 +362,7 @@ int fpm_status_handle_request(TSRMLS_D) /* {{{ */ time_buffer, now_epoch - scoreboard.start_epoch, scoreboard.requests, -#if HAVE_FPM_LQ +#ifdef HAVE_FPM_LQ scoreboard.lq, scoreboard.lq_max, scoreboard.lq_len,