bug of php in cgi mode
| From: | octave klaba | Date: | Sat, 19 Aug 2000 10:40:02 +0000 |
| Subject: | bug of php in cgi mode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12577@lists.php.net to get a copy of this message | ||
Hello,
I think there is a littel bug in output of
the php4.0.1pl in cgi mode. For exemple:
#!/usr/local/bin/php
<?
header( "Location: http://www.blahbla.com" );
?>
it gives Error 500 (I tried to modify php.ini but
php seems not to care about it since we still have
Content-type: text/html)
# /home/clicserv/cgi-bin/test.cgi
X-Powered-By: PHP/4.0.1pl2
Location: http://www.blahbla.com
Content-type: text/html
X-Powered-By: PHP/4.0.1pl2 should be after Location
in php3.0.16 it works:
# /home/clicserv/cgi-bin/test.cgi
Location: http://www.blahbla.com
X-Powered-By: PHP/3.0.16
Content-type: text/html
Octave
Amicalement,
oCtAvE
"Internet ? Welcome in the slave economy."