#23632 [Opn->Bgs]: incorrect headers from php-cgi, redirect fails, still in 4.3.2-RC3-dev

From: Date: Thu, 15 May 2003 14:43:47 +0000
Subject: #23632 [Opn->Bgs]: incorrect headers from php-cgi, redirect fails, still in 4.3.2-RC3-dev
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39705@lists.php.net to get a copy of this message
ID: 23632 Updated by: sniper@php.net Reported By: 1inside at gmx dot net -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: linux 2.4.18-3 PHP Version: 4.3.1 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. You need to configure cgi correctly. Previous Comments: ------------------------------------------------------------------------ [2003-05-14 20:47:31] 1inside at gmx dot net hello, after upgrading from 4.1.2 to 4.3.1 the php-cgi seems to send incorrect headers. i tried the php4-STABLE-200305142330, too but the problem persists. os: linux 2.4.18-3 webserver: apache1.3.27 php: 4.3.2-RC3-dev (php4-STABLE-200305142330) php4.3.1 ./configure --with-mysql --with-apxs=/home/service/apache_1.3.27/bin/apxs http://bugs.php.net/bug.php?id=23184: my var_dump(ini_get("cgi.rfc2616_headers")) resulted in an empty string first test: /cgi-bin/test ------------------------- #!/usr/bin/php4 <php echo "blah"; ?> bash> telnet mydomain.net 80 Trying 123.234.123.234... Connected to mydomain.net. Escape character is '^]'. GET /cgi-bin/test HTTP/1.1 HOST: mydomain.net HTTP/1.1 500 Internal Server Error Date: Thu, 15 May 2003 01:01:44 GMT Server: Apache/1.3.27 (Unix) Connection: close Transfer-Encoding: chunked apache error log: ----------------- bash> tail error-log [Thu May 15 03:01:47 2003] [error] [client 111.222.111.222] Premature end of script headers: /www/virtual/www.mydomain.net/cgi-bin/test now modified: /cgi-bin/test2 this one works ------------------------------------------- #!/usr/bin/php4 <?php echo "Content-Type: text/html\n\n"; echo "blah"; ?> bash> telnet mydomain.net 80 Trying 123.234.123.234... Connected to mydomain.net. Escape character is '^]'. GET /cgi-bin/test2 HTTP/1.1 HOST: mydomain.net HTTP/1.1 200 OK Date: Thu, 15 May 2003 01:09:52 GMT Server: Apache/1.3.27 (Unix) Transfer-Encoding: chunked last one: /cgi-bin/test3 redirect fails... ------------------------------------------ #!/usr/bin/php4 <?php header( "Location: http://www.php.net" ); ?> bash> telnet mydomain.net 80 Trying 123.234.123.234... Connected to mydomain.net. Escape character is '^]'. GET /cgi-bin/test3 HTTP/1.1 HOST: mydomain.net HTTP/1.1 500 Internal Server Error Date: Thu, 15 May 2003 01:17:51 GMT Server: Apache/1.3.27 (Unix) Connection: close Transfer-Encoding: chunked apache error log: ----------------- bash> tail error-log [Thu May 15 03:17:55 2003] [error] [client 111.222.111.222] Premature end of script headers: /www/virtual/www.mydomain.net/cgi-bin/test3 if i instead use the apache module with /htdocs/test4.php: <?php header( "Location: http://www.php.net" ); ?> there is no problem at all, only the cgi scripts seem to be affected. any help is really appreciated. thanks in advance and please take my apologies if i created a duplicate! Michael ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23632&edit=1

« previous php.bugs (#39705) next »