|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-13 04:34 UTC] 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%
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
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%