summaryrefslogtreecommitdiff
path: root/ext/standard/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/syslog.c')
-rw-r--r--ext/standard/syslog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c
index eeb6849c86..9710ea4d60 100644
--- a/ext/standard/syslog.c
+++ b/ext/standard/syslog.c
@@ -119,6 +119,9 @@ PHP_RSHUTDOWN_FUNCTION(syslog)
if (BG(syslog_device)) {
efree(BG(syslog_device));
}
+#ifdef PHP_WIN32
+ closelog();
+#endif
return SUCCESS;
}