php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81324 php-fpm will not set syslog ident for children
Submitted: 2021-08-03 06:37 UTC Modified: 2021-08-03 12:24 UTC
From: erik at coretech dot se Assigned:
Status: Open Package: FPM related
PHP Version: 8.0.9 OS: CentOS 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-08-03 06:37 UTC] erik at coretech dot se
Description:
------------
When loggning to the syslog from php-fpm. Forked children will inherit the value indicating that openlog already has been run even though closelog() as been called.

Test script:
---------------
<?php
brokensyntax
phpinfo();


Expected result:
----------------
Aug  2 15:49:22 testserver journal: php[4209]: PHP Parse error:  syntax error, unexpected identifier "phpinfo" in /var/www/html/test.php on line 3

Actual result:
--------------
Aug  2 15:49:22 testserver journal: ool www[4209]: PHP Parse error:  syntax error, unexpected identifier "phpinfo" in /var/www/html/test.php on line 3

Patches

syslog_openlog.patch (last revision 2021-08-03 06:37 UTC by erik at coretech dot se)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-03 07:30 UTC] erik at coretech dot se
The following pull request has been associated:

Patch Name: Bug #81324	php-fpm will not set syslog ident for children
On GitHub:  https://github.com/php/php-src/pull/7334
Patch:      https://github.com/php/php-src/pull/7334.patch
 [2021-08-03 12:24 UTC] cmb@php.net
-Package: *General Issues +Package: FPM related
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 01:03:38 2021 UTC