summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--win32/wsyslog.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fba0c6bbfd..42d38f3f40 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 7.4.0beta1
+- Core:
+ . Fixed bug #78212 (Segfault in built-in webserver). (cmb)
11 Jul 2019, PHP 7.4.0alpha3
diff --git a/win32/wsyslog.c b/win32/wsyslog.c
index 50a34fabf0..b4e58b1562 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;