Browse Source

Fixed bug #37376 (fastcgi.c compile fail with gcc 2.95.4).

PECL_OPENSSL
Ilia Alshanetsky 20 years ago
parent
commit
57184454e9
  1. 1
      NEWS
  2. 12
      sapi/cgi/fastcgi.c

1
NEWS

@ -6,6 +6,7 @@ PHP NEWS
- Added support for Apache 2.2 handler in the Windows distro. (Edin)
- Added pg_field_table() function. (Edin)
- Add implementation of curl_multi_info_read (Brian)
- Fixed bug #37376 (fastcgi.c compile fail with gcc 2.95.4). (Ilia)
- Fixed bug #37348 (make PEAR install ignore open_basedir). (Ilia)
- Fixed bug #37313 (sigemptyset() used without including <signal.h>).
(jdolecek)

12
sapi/cgi/fastcgi.c

@ -669,12 +669,14 @@ int fcgi_accept_request(fcgi_request *req)
}
FCGI_UNLOCK(req->listen_socket);
#else
sa_t sa;
socklen_t len = sizeof(sa);
{
sa_t sa;
socklen_t len = sizeof(sa);
FCGI_LOCK(req->listen_socket);
req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len);
FCGI_UNLOCK(req->listen_socket);
FCGI_LOCK(req->listen_socket);
req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len);
FCGI_UNLOCK(req->listen_socket);
}
#endif
if (req->fd < 0 && (in_shutdown || errno != EINTR)) {

Loading…
Cancel
Save