From: Derick Rethans Date: Mon, 26 May 2003 18:37:48 +0000 (+0000) Subject: - MFB X-Git-Tag: RELEASE_1_0_2~577 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87a85db670c1f858a3a902710c6f349db3ddfaf2;p=php - MFB --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index c3ffcebeb5..86e661b5a6 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -261,6 +261,13 @@ static char* sapi_cli_read_cookies(TSRMLS_D) return NULL; } +static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) +{ + /* We do nothing here, this function is needed to prevent that the fallback + * header handling is called. */ + return SAPI_HEADER_SENT_SUCCESSFULLY; +} + static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) { } @@ -320,7 +327,7 @@ static sapi_module_struct cli_sapi_module = { php_error, /* error handler */ NULL, /* header handler */ - NULL, /* send headers handler */ + sapi_cli_send_headers, /* send headers handler */ sapi_cli_send_header, /* send header handler */ NULL, /* read POST data */