]> granicus.if.org Git - php/commit
Add sapi_header_op interface which supersedes the sapi_add_header and _ex
authorSascha Schumann <sas@php.net>
Wed, 3 Jul 2002 10:42:31 +0000 (10:42 +0000)
committerSascha Schumann <sas@php.net>
Wed, 3 Jul 2002 10:42:31 +0000 (10:42 +0000)
commit9c876ea01ad806ae6e345c5dc0cf252c0ebe8864
tree60c5f992ca4a366896c4166747336f79ca7e9164
parentc73733c59acef49b86af5996cb0ec12b970a7759
Add sapi_header_op interface which supersedes the sapi_add_header and _ex
calls.

Revert the change to the sapi_add_header_ex interface.

Fix various bugs:

1.  header("HTTP/1.0 306 foo");
    header("Location: absolute-uri");

    did not work in combination with several SAPI modules, because
    http_status_line was never properly reset.  And thus, all SAPI
    modules which looked at http_status_line ignored the changed
    http_response_code.

2.  The CGI SAPI did not send out the HTTP status line at all, if
    http_status_line had not been set explicitly by calling
    header("HTTP/1.0 200 foo");
ext/standard/head.c
main/SAPI.c
main/SAPI.h
sapi/pi3web/pi3web_sapi.c
sapi/tux/php_tux.c
sapi/webjames/webjames.c