PHP 4.0 Bug #7586 Updated: Invalid (?) "HTTP/1.0 Something" response
| From: | tictactux at surfeu dot ch | Date: | Fri, 03 Nov 2000 09:19:35 +0000 |
| Subject: | PHP 4.0 Bug #7586 Updated: Invalid (?) "HTTP/1.0 Something" response | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36926@lists.php.net to get a copy of this message | ||
ID: 7586
User Update by: tictactux@surfeu.ch
Old-Status: Open
Status: Closed
Bug Type: Other web server
Description: Invalid (?) "HTTP/1.0 Something" response
Issue closed.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-02 05:29:09] tictactux@surfeu.ch
Whenever thttpd (2.20b) runs a PHP script, its header looks like "HTTP/1.0 200
Something(...)". This causes some Proxies to choke, and subsequently I cannot login into my
Webmail application. From the Wild West Web (not via a Proxy) the scripts behave as expected.
The source is in php-4.0.3pl1sapithttpdthttpd.c lines 48ff in function sapi_thttpd_send_headers:
static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers SLS_DC)
{
char buf[1024];
if (!SG(sapi_headers).http_status_line) {
snprintf(buf, 1023, "HTTP/1.0 %d Somethingrn", SG(sapi_headers).http_response_code);
send(TG(hc)->conn_fd, buf, strlen(buf), 0);
}
return SAPI_HEADER_DO_SEND;
}
This should be corrected to yield the 'normal' thttpd headers (HTTP/1.1 200 OK etc).
Get the phpinfo() output at http://62.2.72.158/test.php.
Regards, Ben
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7586