summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-02-20 15:27:30 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-02-20 15:27:30 +0000
commitd3158cdc157866cb963b98bdbc0138a38d4e3c72 (patch)
tree6d86d40f40a403ce64e59ea6711e181aa637c85f /ext
parent7d0cee8c80199a3503e774c0df3c898954ff87eb (diff)
downloadphp-git-d3158cdc157866cb963b98bdbc0138a38d4e3c72.tar.gz
Fixed a possible crash with syslog logging on ZTS builds
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/syslog.c2
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;
}