|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hans at velum dot net
New email:
PHP Version: OS:


 [2005-12-22 21:12 UTC] hans at velum dot net
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.


Add a Patch

Pull Requests

Add a Pull Request


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

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 May 23 16:01:35 2024 UTC