]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44152 (Possible crash with syslog logging on ZTS builds).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 20 Feb 2008 15:28:37 +0000 (15:28 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 20 Feb 2008 15:28:37 +0000 (15:28 +0000)
NEWS
ext/standard/syslog.c

diff --git a/NEWS b/NEWS
index b481394699d2b0e132885f7f4498eae12ea72fb0..0f264c317bc2e5cbd0c83ca663a4b9137feaea92 100644 (file)
--- 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
index 1d4afe7edcf6ebaef8c284831fd61d56fdbdd5a6..351a477ec12c3454d250587c26c6fd2f554d2eb2 100644 (file)
@@ -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;
 }