diff options
author | Derick Rethans <derick@php.net> | 2002-06-21 09:31:21 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-06-21 09:31:21 +0000 |
commit | 6869cb3f5a907500d9553c978fc491748585d9db (patch) | |
tree | a40530b71f58a94b359254c223d380c2ffb7f2be /sapi | |
parent | 0f4ccfaa27a52b916a78fedae167aaa03808b372 (diff) | |
download | php-git-6869cb3f5a907500d9553c978fc491748585d9db.tar.gz |
- Added a new parameter to the header() function which overrides the HTTP
response code.
@- Added a new parameter to the header() function which overrides the HTTP
@ response code. (Derick)
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/pi3web/pi3web_sapi.c | 2 | ||||
-rw-r--r-- | sapi/tux/php_tux.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index 2f49cdca72..a7176a1b2a 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -424,7 +424,7 @@ DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) break; case PHP_MODE_INDENT: header_line = (char *)estrdup("Content-Type: text/plain"); - sapi_add_header_ex(header_line, strlen(header_line), 1, 1 TSRMLS_CC); + sapi_add_header_ex(header_line, strlen(header_line), 1, 1, 0 TSRMLS_CC); if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS ) { zend_indent(); diff --git a/sapi/tux/php_tux.c b/sapi/tux/php_tux.c index 16a7be8133..d2da64882a 100644 --- a/sapi/tux/php_tux.c +++ b/sapi/tux/php_tux.c @@ -195,7 +195,7 @@ static void sapi_tux_register_variables(zval *track_vars_array TSRMLS_DC) sprintf(buf, "Server: %s", TUXAPI_version); - sapi_add_header_ex(buf, strlen(buf), 1, 0 TSRMLS_CC); + sapi_add_header_ex(buf, strlen(buf), 1, 0, 0 TSRMLS_CC); php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array TSRMLS_CC); php_register_variable("SERVER_SOFTWARE", TUXAPI_version, track_vars_array TSRMLS_CC); php_register_variable("GATEWAY_INTERFACE", "CGI/1.1", track_vars_array TSRMLS_CC); |