]> granicus.if.org Git - php/commitdiff
Fix #78656: Parse errors classified as highest log-level
authorErik Lundin <erik@coretech.se>
Wed, 9 Oct 2019 12:08:22 +0000 (14:08 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 9 Oct 2019 15:27:32 +0000 (17:27 +0200)
NEWS
main/main.c

diff --git a/NEWS b/NEWS
index d2056ad45dce4b2819487698d2fe29332ab01a66..972a22fc84cad489709d45171394d308734704b9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2019, PHP 7.2.25
 
+- Core:
+  . Fixed bug #78656 (Parse errors classified as highest log-level). (Erik
+    Lundin)
+
 - Iconv:
   . Fixed bug #78642 (Wrong libiconv version displayed). (gedas at martynas,
     cmb).
index 37d520ec34b3619eec3a235f4dbf3a2671c22089..a3fc980b1746b6d13c31386b93b67c14c989f4d6 100644 (file)
@@ -1131,7 +1131,7 @@ static ZEND_COLD void php_error_cb(int type, const char *error_filename, const u
                                break;
                        case E_PARSE:
                                error_type_str = "Parse error";
-                               syslog_type_int = LOG_EMERG;
+                               syslog_type_int = LOG_ERR;
                                break;
                        case E_NOTICE:
                        case E_USER_NOTICE: