From:             hans at velum dot net
Operating system: 
PHP version:      5.1.1
PHP Bug Type:     Unknown/Other Function
Bug description:  syslog() logs garbage

Description:
------------
Bug #28722 still seems to be a bug -- and there is apparently no way to
re-open or comment on a bug that was marked "Bogus" prematurely. 

We see this problem using PHP 5.0.5.  I assume that it's still an issue
for 5.1.1, but I don't have the luxury of running that branch yet.

 * We _are_ using syslog logging from our PHP application
 * We have php errors going to syslog (in php.ini error_log is set to
'syslog')
 * We _always_ call openlog() before any syslog() calls in the PHP
application.

We see garbage in the syslog when PHP errors (e.g. PHP Fatal Error...) are
sent to syslog *without* our application having sent any logs (and hence
without having called openlog()).

The workaround is to always call openlog() in our PHP application
regardless of whether the application actually needs to call syslog()
itself.


-- 
Edit bug report at http://bugs.php.net/?id=35777&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35777&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35777&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35777&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35777&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35777&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35777&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35777&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35777&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35777&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35777&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35777&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35777&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35777&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35777&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35777&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35777&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35777&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35777&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35777&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35777&r=mysqlcfg

Reply via email to