Req #78656 [NEW]: Parse errors classified as highest log-level

From: Date: Wed, 09 Oct 2019 11:53:12 +0000
Subject: Req #78656 [NEW]: Parse errors classified as highest log-level
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223156@lists.php.net to get a copy of this message
From: erik at coretech dot se Operating system: CentOS 7 PHP version: 7.3.10 Package: Scripting Engine problem Bug Type: Feature/Change Request Bug description:Parse errors classified as highest log-level Description: ------------ Parse errors are classified as the highest log level (LOG_EMERG). This is problem since Centos/Fedora writes LOG_EMERG messages to all users: https://src.fedoraproject.org/rpms/rsyslog/blob/master/f/rsyslog.conf#_59 LOG_EMERG is described as: "system is unusable". A php-script with a parse error would not in most cases render the system unstable. At most LOG_ERR or LOG_CRIT would be more suitable. Fatal errors are classified as LOG_ERR. Why not make parse errors the same level? The source: https://github.com/php/php-src/blob/PHP-7.3/main/main.c#L1300 The commit that changed this: https://github.com/php/php-src/commit/3edf7d960cb14f2ee45944e7c567af92af25bda1 -- Edit bug report at https://bugs.php.net/bug.php?id=78656&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78656&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78656&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78656&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78656&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78656&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78656&r=support Expected behavior: https://bugs.php.net/fix.php?id=78656&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78656&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78656&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78656&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78656&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78656&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78656&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78656&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78656&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78656&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78656&r=mysqlcfg

« previous php.bugs (#223156) next »