diff options
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index c2ec369155..43660e53de 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -241,8 +241,7 @@ static void sapi_cli_log_message(char *message) TSRMLS_FETCH(); if (php_header(TSRMLS_C)) { - fprintf(stderr, "%s", message); - fprintf(stderr, "\n"); + fprintf(stderr, "%s\n", message); } } @@ -265,8 +264,8 @@ static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_c { if (sapi_header) { PHPWRITE_H(sapi_header->header, sapi_header->header_len); + PHPWRITE_H("\r\n", 2); } - PHPWRITE_H("\r\n", 2); } |