diff options
author | Anatol Belski <ab@php.net> | 2014-10-15 09:37:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-15 09:37:55 +0200 |
commit | c00424e427930a33e6d8645cc3f23fb78ed29b9f (patch) | |
tree | 83190e6ac9d0714fc971fe0925a0d935414de91c /win32/wsyslog.c | |
parent | 382f95e6127d52b079d172ccd017cf306402e015 (diff) | |
download | php-git-c00424e427930a33e6d8645cc3f23fb78ed29b9f.tar.gz |
bring back all the TSRMLS_FETCH() stuff
for better comparability with the mainstream
Diffstat (limited to 'win32/wsyslog.c')
-rw-r--r-- | win32/wsyslog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/wsyslog.c b/win32/wsyslog.c index 89f98e5224..75c5ef58e5 100644 --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@ -61,6 +61,7 @@ void closelog(void) { + TSRMLS_FETCH(); if (PW32G(log_source)) { DeregisterEventSource(PW32G(log_source)); PW32G(log_source) = NULL; @@ -84,6 +85,7 @@ void syslog(int priority, const char *message, ...) unsigned short etype; char *tmp = NULL; DWORD evid; + TSRMLS_FETCH(); /* default event source */ if (!PW32G(log_source)) @@ -121,6 +123,8 @@ void syslog(int priority, const char *message, ...) void openlog(const char *ident, int logopt, int facility) { + TSRMLS_FETCH(); + if (PW32G(log_source)) { closelog(); } |