Bug #68822 [Asn->Csd]: php-fpm - the result of access log is wrong when use fastcgi_finish_request

From: Date: Mon, 16 Feb 2015 12:23:32 +0000
Subject: Bug #68822 [Asn->Csd]: php-fpm - the result of access log is wrong when use fastcgi_finish_request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190712@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68822&edit=1 ID: 68822 Updated by: tony2001@php.net Reported by: redfoxli069 at gmail dot com Summary: php-fpm - the result of access log is wrong when use fastcgi_finish_request -Status: Assigned +Status: Closed Type: Bug Package: FPM related Operating System: linux PHP Version: 5.5.20 Assigned To: fat Block user comment: N Private report: N New Comment: Automatic comment on behalf of honghu069@163.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=3664345abac75aabedfbca061b0b7db5915de085 Log: fix bug #68822 (request time is reset too early) Previous Comments: ------------------------------------------------------------------------ [2015-02-16 11:49:30] philipp dot wahala at web dot de Related To: Bug #62382 ------------------------------------------------------------------------ [2015-01-13 04:43:53] redfoxli069 at gmail dot com Description: ------------ the result of access log is wrong when use fastcgi_finish_request,such as 1)%t: server time the request was received 2)%d: time taken to serve the request access formate is here: access.format = "%R - %u %t %T %s %{mili}d %{kilo}M %C%%" Test script: --------------- <?php echo "hi\n"; fastcgi_finish_request(); Expected result: ---------------- 127.0.0.1 - 13/Jan/2015:12:30:07 +0800 13/Jan/2015:12:30:07 +0800 200 0.913 256 0.00% Actual result: -------------- 127.0.0.1 - 01/Jan/1970:08:00:00 +0800 13/Jan/2015:12:30:07 +0800 200 3896627338.811 256 0.00% ------------------------------------------------------------------------ [2015-01-13 04:34:08] redfoxli069 at gmail dot com Description: ------------ the result of access log is wrong when use fpm_request_finished,such as 1)%t: server time the request was received 2)%d: time taken to serve the request access formate is here: access.format = "%R - %u %t %T %s %{mili}d %{kilo}M %C%%" Test script: --------------- <?php echo "hi\n"; fastcgi_finish_request(); Expected result: ---------------- 127.0.0.1 - 13/Jan/2015:12:30:07 +0800 13/Jan/2015:12:30:07 +0800 200 0.913 256 0.00% Actual result: -------------- 127.0.0.1 - 01/Jan/1970:08:00:00 +0800 13/Jan/2015:12:30:07 +0800 200 3896627338.811 256 0.00% ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68822&edit=1

« previous php.bugs (#190712) next »