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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: erik at coretech dot se
New email:
PHP Version: OS:

 

 [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)

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC