From 935b5cb11ed672c42b2a77e10be752702e474e7f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 27 Dec 2016 22:44:46 +0100 Subject: Flush stderr on win32 in cli_log_message This allows us to unfork a bunch of tests for Windows. --- sapi/cli/php_cli.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 978c8b332e..22f4e0cebe 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -379,6 +379,9 @@ static void sapi_cli_register_variables(zval *track_vars_array) /* {{{ */ static void sapi_cli_log_message(char *message) /* {{{ */ { fprintf(stderr, "%s\n", message); +#ifdef PHP_WIN32 + fflush(stderr); +#endif } /* }}} */ -- cgit v1.2.1