diff options
author | Derick Rethans <derick@php.net> | 2003-05-26 18:37:48 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2003-05-26 18:37:48 +0000 |
commit | 87a85db670c1f858a3a902710c6f349db3ddfaf2 (patch) | |
tree | 1992d764ec1d3948e8cc601feb180465ccacf083 /sapi | |
parent | 7bd188fcf0590901fae3b220dbaf85b7b66f105c (diff) | |
download | php-git-87a85db670c1f858a3a902710c6f349db3ddfaf2.tar.gz |
- MFB
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cli/php_cli.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 */ |