diff options
author | Marcus Boerger <helly@php.net> | 2003-03-30 11:07:36 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-03-30 11:07:36 +0000 |
commit | 06a0e1c1127a46f263e368a32d5bc04758610d60 (patch) | |
tree | 2ae3848251656202d22c9fc099691147f95d91c0 /sapi/cli/php_cli.c | |
parent | ac3113122aabc68be10c19a0e3dd1c369b31e9d2 (diff) | |
download | php-git-06a0e1c1127a46f263e368a32d5bc04758610d60.tar.gz |
simplify and fix
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); } |