php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35777 syslog() logs garbage
Submitted: 2005-12-22 21:12 UTC Modified: 2005-12-30 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: hans at velum dot net Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.1.1 OS:
Private report: No CVE-ID: None
 [2005-12-22 21:12 UTC] hans at velum dot net
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-22 21:13 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2005-12-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC