From: Xinchen Hui Date: Sat, 29 Oct 2011 02:14:04 +0000 (+0000) Subject: Fixed bug #60146 (Last 2 lines of page not being output) X-Git-Tag: php-5.5.0alpha1~970 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62270fef736ad8338d66be4d32dcbcf75b5e5995;p=php Fixed bug #60146 (Last 2 lines of page not being output) --- diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 8b4303c360..046c622e55 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -1579,7 +1579,7 @@ static size_t php_cli_server_client_send_through(php_cli_server_client *client, ssize_t nbytes_sent = send(client->sock, str + str_len - nbytes_left, nbytes_left, 0); if (nbytes_sent < 0) { int err = php_socket_errno(); - if (err == EAGAIN) { + if (err == SOCK_EAGAIN) { int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); if (nfds > 0) { continue;