mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Merge branch 'PHP-7.0' into PHP-7.1
This commit is contained in:
commit
6d5ea20e0b
4
NEWS
4
NEWS
@ -17,6 +17,10 @@ PHP NEWS
|
||||
. Fixed bug #73837 ("new DateTime()" sometimes returns 1 second ago value).
|
||||
(Derick)
|
||||
|
||||
- FPM:
|
||||
. Fixed bug #69860 (php-fpm process accounting is broken with keepalive).
|
||||
(Denis Yeldandi)
|
||||
|
||||
- GD:
|
||||
. Fixed bug #74031 (ReflectionFunction for imagepng is missing last two
|
||||
parameters). (finwe)
|
||||
|
@ -462,6 +462,11 @@ void fcgi_terminate(void)
|
||||
in_shutdown = 1;
|
||||
}
|
||||
|
||||
void fcgi_request_set_keep(fcgi_request *req, int new_value)
|
||||
{
|
||||
req->keep = new_value;
|
||||
}
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE_WEAK
|
||||
void fcgi_set_logger(fcgi_logger lg) {
|
||||
fcgi_log = lg;
|
||||
@ -1429,8 +1434,6 @@ int fcgi_accept_request(fcgi_request *req)
|
||||
struct pollfd fds;
|
||||
int ret;
|
||||
|
||||
req->hook.on_read();
|
||||
|
||||
fds.fd = req->fd;
|
||||
fds.events = POLLIN;
|
||||
fds.revents = 0;
|
||||
@ -1443,8 +1446,6 @@ int fcgi_accept_request(fcgi_request *req)
|
||||
}
|
||||
fcgi_close(req, 1, 0);
|
||||
#else
|
||||
req->hook.on_read();
|
||||
|
||||
if (req->fd < FD_SETSIZE) {
|
||||
struct timeval tv = {5,0};
|
||||
fd_set set;
|
||||
@ -1471,6 +1472,7 @@ int fcgi_accept_request(fcgi_request *req)
|
||||
} else if (in_shutdown) {
|
||||
return -1;
|
||||
}
|
||||
req->hook.on_read();
|
||||
if (fcgi_read_request(req)) {
|
||||
#ifdef _WIN32
|
||||
if (is_impersonate && !req->tcp) {
|
||||
|
@ -102,6 +102,7 @@ int fcgi_accept_request(fcgi_request *req);
|
||||
int fcgi_finish_request(fcgi_request *req, int force_close);
|
||||
const char *fcgi_get_last_client_ip();
|
||||
void fcgi_set_in_shutdown(int new_value);
|
||||
void fcgi_request_set_keep(fcgi_request *req, int new_value);
|
||||
|
||||
#ifndef HAVE_ATTRIBUTE_WEAK
|
||||
typedef void (*fcgi_logger)(int type, const char *fmt, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
|
||||
|
@ -1995,7 +1995,8 @@ fastcgi_request_done:
|
||||
|
||||
requests++;
|
||||
if (UNEXPECTED(max_requests && (requests == max_requests))) {
|
||||
fcgi_finish_request(request, 1);
|
||||
fcgi_request_set_keep(request, 0);
|
||||
fcgi_finish_request(request, 0);
|
||||
break;
|
||||
}
|
||||
/* end of fastcgi loop */
|
||||
|
Loading…
Reference in New Issue
Block a user