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

From: Date: Thu, 15 May 2003 01:47:31 +0000
Subject: #23632 [NEW]: incorrect headers from php-cgi, redirect fails, still in 4.3.2-RC3-dev
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39674@lists.php.net to get a copy of this message
From: 1inside at gmx dot net Operating system: linux redhat 7.3 PHP version: 4.3.1 PHP Bug Type: HTTP related Bug description: incorrect headers from php-cgi, redirect fails, still in 4.3.2-RC3-dev 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 bug report at http://bugs.php.net/?id=23632&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23632&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23632&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23632&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23632&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23632&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23632&r=support Expected behavior: http://bugs.php.net/fix.php?id=23632&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23632&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23632&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23632&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23632&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23632&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23632&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23632&r=gnused

« previous php.bugs (#39674) next »