Bug #76234 [NEW]: bad log filtering with 'log_level' in php-fpm.conf
From: aguytech at free dot fr
Operating system: debian9 stretch
PHP version: 7.0.29
Package: FPM related
Bug Type: Bug
Bug description:bad log filtering with 'log_level' in php-fpm.conf
Description:
------------
Debian9 stretch
PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) ( NTS )
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
rsyslogd 8.24.0,
When I change the parameter 'log_level' in php-fpm configuration file :
'php-fpm.conf' from notice to something else PHP no returns error in
PHP-FPM logs.
apache error log ok
error in screen ok with 'display_errors = On' in 'php.ini'
Test script:
---------------
'php-fpm.conf':
log_level = warning # or error ...
'test.php':
<?php
toto( );
Expected result:
----------------
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www]
child 2172 said into stderr: "NOTICE: PHP message: PHP Fatal error:
Uncaught Error: Call to undefined function treu() in
/var/www/localhost/public_html/test.php:10"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www]
child 2172 said into stderr: "Stack trace:"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www]
child 2172 said into stderr: "#0 {main}"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www]
child 2172 said into stderr: " thrown in
/var/www/localhost/public_html/test.php on line 10"
Actual result:
--------------
Nothing returned
--
Edit bug report at https://bugs.php.net/bug.php?id=76234&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76234&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76234&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76234&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76234&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76234&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76234&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76234&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76234&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76234&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76234&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76234&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76234&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76234&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76234&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76234&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76234&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76234&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76234&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76234&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76234&r=mysqlcfg
Thread (3 messages)
- aguytech at free dot fr