From 3164186d53533ac5239790e692b33dd6e56c18df Mon Sep 17 00:00:00 2001 From: Erik Lundin Date: Wed, 9 Oct 2019 14:08:22 +0200 Subject: [PATCH] Fix #78656: Parse errors classified as highest log-level --- NEWS | 4 ++++ main/main.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d2056ad45dc..972a22fc84c 100644 --- 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). diff --git a/main/main.c b/main/main.c index 37d520ec34b..a3fc980b174 100644 --- a/main/main.c +++ b/main/main.c @@ -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: