From de270b4d6e9e8a95c891b75b8431da9a567e57f4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 20 Feb 2008 15:28:37 +0000 Subject: [PATCH] MFB: Fixed bug #44152 (Possible crash with syslog logging on ZTS builds). --- NEWS | 2 ++ ext/standard/syslog.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index b481394699..0f264c317b 100644 --- a/NEWS +++ b/NEWS @@ -10,10 +10,12 @@ PHP NEWS which to group by data is specified. (Ilia) - Upgraded PCRE to version 7.6 (Nuno) + - Fixed bug #44184 (Double free of loop-variable on exception). (Dmitry) - Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error). (Ilia) - Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)). (Felipe) +- Fixed bug #44152 (Possible crash with syslog logging on ZTS builds). (Ilia) - Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=). (Dmitry) - Fixed bug #44046 (crash inside array_slice() function with an invalid diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 1d4afe7edc..351a477ec1 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -110,6 +110,7 @@ PHP_RINIT_FUNCTION(syslog) } else { BG(syslog_started)=0; } + BG(syslog_device) = NULL; return SUCCESS; } @@ -126,6 +127,7 @@ PHP_MSHUTDOWN_FUNCTION(syslog) { if (BG(syslog_device)) { free(BG(syslog_device)); + BG(syslog_device) = NULL; } return SUCCESS; } -- 2.40.0