diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-02-20 15:27:30 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-02-20 15:27:30 +0000 |
commit | d3158cdc157866cb963b98bdbc0138a38d4e3c72 (patch) | |
tree | 6d86d40f40a403ce64e59ea6711e181aa637c85f /ext | |
parent | 7d0cee8c80199a3503e774c0df3c898954ff87eb (diff) | |
download | php-git-d3158cdc157866cb963b98bdbc0138a38d4e3c72.tar.gz |
Fixed a possible crash with syslog logging on ZTS builds
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/syslog.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |