From 091f279eb025a91d82f0ca0f0f8e31571175bf69 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 29 Oct 2011 02:14:04 +0000 Subject: [PATCH] Fixed bug #60146 (Last 2 lines of page not being output) --- NEWS | 1 + sapi/cli/php_cli_server.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e09214eb4b4..8b0c17a02e4 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ PHP NEWS . Fixed bug #60112 (If URI does not contain a file, index.php is not served). (Laruence) . Fixed bug #60115 (memory definitely lost in cli server). (Laruence) + . Fixed bug #60146 (Last 2 lines of page not being output). (Laruence) - Core: . Fixed bug #60120 (proc_open's streams may hang with stdin/out/err when diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 8b4303c360e..046c622e554 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;