From:             joe at cirkuit dot net
Operating system: FreeBSD 8.1
PHP version:      5.3.15
Package:          FPM related
Bug Type:         Bug
Bug description:PHP error logging with FPM fails to display an IP address and 
correct time

Description:
------------
This only happens under a specific condition. If the error_log file being
written 
to is world readable/writable (didn't test other cases), then any php 
errors/warnings/notices that are logged have no IP address and have a UTC 
timestamp.

Changing permissions from 777 to 644 resolves this issue.

I know the error log should probably never be world writable, but it's
strange how 
strengthening the permissions caused the IP and correct timestamp log
correctly.

Test script:
---------------
chmod 777 /usr/local/apache/logs/error_log
[create any php script that produces an error or notice]
[run the php script via www (using fastcgi, not sure if this matters)]
tail /usr/local/apache/logs/error_log

fixed when:
chmod 644 /usr/local/apache/logs/error_log


-- 
Edit bug report at https://bugs.php.net/bug.php?id=62660&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62660&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62660&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62660&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62660&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62660&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62660&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62660&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62660&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62660&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62660&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62660&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62660&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62660&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62660&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62660&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62660&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62660&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62660&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62660&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62660&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62660&r=mysqlcfg

Reply via email to