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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
13 + 28 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 22:01:28 2024 UTC