Skip to content

Commit

Permalink
Merge branch 'PHP-7.2' into PHP-7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 30, 2019
2 parents 34edd4a + 8f564e5 commit e9cfd94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ PHP NEWS
. Fixed bug #77812 (Interactive mode does not support PHP 7.3-style heredoc).
(cmb, Nikita)

- FastCGI:
. Fixed bug #78469 (FastCGI on_accept hook is not called when using named
pipes on Windows). (Sergei Turchanov)

- FPM:
. Fixed bug #78334 (fpm log prefix message includes wrong stdout/stderr
notation). (Tsuyoshi Sadakata)
Expand Down
4 changes: 2 additions & 2 deletions main/fastcgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,8 @@ int fcgi_accept_request(fcgi_request *req)
if (in_shutdown) {
return -1;
}

req->hook.on_accept();
#ifdef _WIN32
if (!req->tcp) {
pipe = (HANDLE)_get_osfhandle(req->listen_socket);
Expand Down Expand Up @@ -1403,8 +1405,6 @@ int fcgi_accept_request(fcgi_request *req)
sa_t sa;
socklen_t len = sizeof(sa);

req->hook.on_accept();

FCGI_LOCK(req->listen_socket);
req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
FCGI_UNLOCK(req->listen_socket);
Expand Down

0 comments on commit e9cfd94

Please sign in to comment.