Bug #65619 [NEW]: FPM access log has invalid date and duration with Symfony
| From: | php at lavoie dot sl | Date: | Wed, 04 Sep 2013 19:54:46 +0000 |
| Subject: | Bug #65619 [NEW]: FPM access log has invalid date and duration with Symfony | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-181433@lists.php.net to get a copy of this message | ||
From: php at lavoie dot sl
Operating system: Ubuntu 12.10 Quantal
PHP version: 5.4.19
Package: FPM related
Bug Type: Bug
Bug description:FPM access log has invalid date and duration with Symfony
Description:
------------
I am hosting several PHP platforms (Wordpress, Drupal, Symfony and custom)
and I
am trying to activate access logs with PHP FPM.
Problem is, for all my Symfony installations, the request time (%t) is
epoch and
the duration (%d) and WAY off.
Now, I havenât found what Symfony is doing is particular, but this should
not
happen in the first place.
I tried with PHP 5.4.6-1ubuntu1.3 and PHP 5.4.19-1+debphp.org~quantal+3
PHPInfo: http://web4.hosting.wemakecustom.com/phpinfo.php
Thank you very much !
Test script:
---------------
access.format = "%{%Y-%m-%d %H:%M:%S}t %{HTTP_HOST}e %m \"%r%Q%q\" %s
\"%f\" %{mili}d %{kilo}M %C%%"
Expected result:
----------------
2013-09-04 15:39:05 www.example.com GET "/index.php" 200
"/var/www/example.com/htdocs/index.php" 428.669 9984 76.98%
Actual result:
--------------
1969-12-31 19:00:00 www.example2.com GET "/app.php" 302
"/var/www/example2.com/htdocs/app.php" 441483112.485 3328 0.00%
--
Edit bug report at https://bugs.php.net/bug.php?id=65619&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65619&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65619&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65619&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65619&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65619&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65619&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65619&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65619&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65619&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65619&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65619&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65619&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65619&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65619&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65619&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65619&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65619&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65619&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65619&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65619&r=mysqlcfg