|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-15 09:43 UTC] sniper@php.net
[2003-05-15 16:42 UTC] 1inside at gmx dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 10:00:02 2025 UTC |
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