Skip to content

Commit 17997a9

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #78212: Segfault in built-in webserver
2 parents c02dfdd + fa65f5e commit 17997a9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 7.4.0beta1
44

5+
- Core:
6+
. Fixed bug #78212 (Segfault in built-in webserver). (cmb)
57

68
11 Jul 2019, PHP 7.4.0alpha3
79

win32/wsyslog.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ void vsyslog(int priority, const char *message, va_list args)
9595
DWORD evid;
9696
wchar_t *strsw[2];
9797

98+
/* default event source */
99+
if (INVALID_HANDLE_VALUE == PW32G(log_source))
100+
openlog("php", LOG_PID, LOG_SYSLOG);
101+
98102
switch (priority) { /* translate UNIX type into NT type */
99103
case LOG_ALERT:
100104
etype = EVENTLOG_ERROR_TYPE;

0 commit comments

Comments
 (0)