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

From: Date: Tue, 13 Jan 2015 04:43:54 +0000
Subject: Bug #68822 [Opn]: 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-189923@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 User updated by: redfoxli069 at gmail dot com Reported by: redfoxli069 at gmail dot com -Summary: php-fpm - the result of access log is wrong when use fpm_request_finished +Summary: php-fpm - the result of access log is wrong when use fastcgi_finish_request Status: Open Type: Bug Package: FPM related Operating System: linux PHP Version: 5.5.20 Block user comment: N Private report: N New Comment: 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% Previous Comments: ------------------------------------------------------------------------ [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 (#189923) next »