cvs: php4 /sapi/cli php_cli.c

From: Date: Mon, 26 May 2003 18:37:49 +0000
Subject: cvs: php4 /sapi/cli php_cli.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21271@lists.php.net to get a copy of this message
derick Mon May 26 14:37:49 2003 EDT Modified files: /php4/sapi/cli php_cli.c Log: - MFB Index: php4/sapi/cli/php_cli.c diff -u php4/sapi/cli/php_cli.c:1.89 php4/sapi/cli/php_cli.c:1.90 --- php4/sapi/cli/php_cli.c:1.89 Mon Apr 28 06:04:50 2003 +++ php4/sapi/cli/php_cli.c Mon May 26 14:37:48 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_cli.c,v 1.89 2003/04/28 10:04:50 edink Exp $ */ +/* $Id: php_cli.c,v 1.90 2003/05/26 18:37:48 derick Exp $ */ #include "php.h" #include "php_globals.h" @@ -261,6 +261,13 @@ 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 @@ 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 */

« previous php.cvs (#21271) next »