Skip to content

Commit e9cfd94

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 34edd4a + 8f564e5 commit e9cfd94

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ PHP NEWS
1111
. Fixed bug #77812 (Interactive mode does not support PHP 7.3-style heredoc).
1212
(cmb, Nikita)
1313

14+
- FastCGI:
15+
. Fixed bug #78469 (FastCGI on_accept hook is not called when using named
16+
pipes on Windows). (Sergei Turchanov)
17+
1418
- FPM:
1519
. Fixed bug #78334 (fpm log prefix message includes wrong stdout/stderr
1620
notation). (Tsuyoshi Sadakata)

main/fastcgi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,8 @@ int fcgi_accept_request(fcgi_request *req)
13731373
if (in_shutdown) {
13741374
return -1;
13751375
}
1376+
1377+
req->hook.on_accept();
13761378
#ifdef _WIN32
13771379
if (!req->tcp) {
13781380
pipe = (HANDLE)_get_osfhandle(req->listen_socket);
@@ -1403,8 +1405,6 @@ int fcgi_accept_request(fcgi_request *req)
14031405
sa_t sa;
14041406
socklen_t len = sizeof(sa);
14051407

1406-
req->hook.on_accept();
1407-
14081408
FCGI_LOCK(req->listen_socket);
14091409
req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
14101410
FCGI_UNLOCK(req->listen_socket);

0 commit comments

Comments
 (0)