From 3e82b3d3aeb3235cc52375ebdf0da7a1d82cde09 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Tue, 25 Nov 2008 03:53:00 +0000 Subject: [PATCH] MFH: Fixed endless loop in cli when ignore_user_abort is on --- sapi/cli/php_cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 86d7ed0209..3d7de7d08c 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -260,11 +260,10 @@ static int sapi_cli_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ { ret = sapi_cli_single_write(ptr, remaining); if (!ret) { -#ifdef PHP_CLI_WIN32_NO_CONSOLE - break; -#else +#ifndef PHP_CLI_WIN32_NO_CONSOLE php_handle_aborted_connection(); #endif + break; } ptr += ret; remaining -= ret; -- 2.50.1