PHP 4.0 Bug #8008 Updated: HTTP/1.1 307 Temporary Redirect ignored

From: Date: Tue, 28 Nov 2000 23:20:49 +0000
Subject: PHP 4.0 Bug #8008 Updated: HTTP/1.1 307 Temporary Redirect ignored
Groups: php.dev 
Request: Send a blank email to php-dev+get-39427@lists.php.net to get a copy of this message
ID: 8008 Updated by: jason Reported By: leen@wirehub.nl Status: Open Bug Type: Apache related Assigned To: Comments: Reclassified and Verified on 4.0.3pl1 and CVS. Works fine in CGI mode does not work as apache module. -Jason Previous Comments: --------------------------------------------------------------------------- [2000-11-28 05:38:18] leen@wirehub.nl in main/SAPI.c: line code 441 SG(sapi_headers).send_default_content_type = 0; 442 } else if (!STRCASECMP(header_line, "Location")) { 443 SG(sapi_headers).http_response_code = 302; /* redirect */ 444 } else if (!STRCASECMP(header_line, "WWW-Authenticate")) { /* HTTP Authentication */ 445 SG(sapi_headers).http_response_code = 401; /* authentication-required */ 446 } 447 *colon_offset = ':'; 448 } My knowledge of C is not so great but I can see that this is being ignored somewhere allong those lines of code (this is part of my script): header ("HTTP/1.1 307 Temporary Redirect"); header (""Location: "http://<redirlocation>"); Please do something about it, this is very anoying, because this is what I get: HTTP/1.1 302 Found Date: Tue, 28 Nov 2000 12:50:46 GMT Server: Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1 X-Powered-By: PHP/4.0.3pl1 Location: http://<redirlocation> Connection: close Transfer-Encoding: chunked Content-Type: text/html (ofcourse http://<redirlocation> is then ofcourse a real location) --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8008

« previous php.dev (#39427) next »