PHP 4.0 Bug #2994 Updated: php4 violates cgi spec regarding header output

From: Date: Fri, 17 Dec 1999 16:14:12 +0000
Subject: PHP 4.0 Bug #2994 Updated: php4 violates cgi spec regarding header output
Groups: php.dev 
Request: Send a blank email to php-dev+get-13801@lists.php.net to get a copy of this message
ID: 2994 User Update by: jnelson@adacgeo.com Status: Open Bug Type: Misbehaving function Description: php4 violates cgi spec regarding header output Near line 305 of SAPI.c just move the if (SG(sapi_headers).send_default_content_type) { sapi_module.send_header(&default_header, SG(server_context)); } line *below* the zend_llist line. That should do it! Also, I may have read the source incorrectly, but are you scanning for HTTP/.... instead of Status: <code> <comment> ?? The latter is the CGi spec way. No cgi should output HTTP/... unless it's an NPH CGI. Thanks! I look forward to hearing your comments. Full Bug description available at: http://bugs.php.net/version4/?id=2994

« previous php.dev (#13801) next »