]> granicus.if.org Git - php/commitdiff
- MFB
authorDerick Rethans <derick@php.net>
Mon, 26 May 2003 18:37:48 +0000 (18:37 +0000)
committerDerick Rethans <derick@php.net>
Mon, 26 May 2003 18:37:48 +0000 (18:37 +0000)
sapi/cli/php_cli.c

index c3ffcebeb5bfff3ff8bc83e27e2c28d9c1e10197..86e661b5a6d366725628ebca005935160dba6a39 100644 (file)
@@ -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 */