Browse Source

Fixed bug #60146 (Last 2 lines of page not being output)

pull/271/head
Xinchen Hui 15 years ago
parent
commit
091f279eb0
  1. 1
      NEWS
  2. 2
      sapi/cli/php_cli_server.c

1
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

2
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;

Loading…
Cancel
Save