diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | win32/wsyslog.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -4,6 +4,7 @@ PHP NEWS - Core: . Added syslog.filter=raw option. (Erik Lundin) + . Fixed bug #78212 (Segfault in built-in webserver). (cmb) - Date: . Fixed #69044 (discrepency between time and microtime). (krakjoe) diff --git a/win32/wsyslog.c b/win32/wsyslog.c index 695c7db8cd..9050b40381 100644 --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@ -95,6 +95,10 @@ void vsyslog(int priority, const char *message, va_list args) DWORD evid; wchar_t *strsw[2]; + /* default event source */ + if (INVALID_HANDLE_VALUE == PW32G(log_source)) + openlog("php", LOG_PID, LOG_SYSLOG); + switch (priority) { /* translate UNIX type into NT type */ case LOG_ALERT: etype = EVENTLOG_ERROR_TYPE; |