Bug #13316 Updated: CGI dies (Premature end of script headers) with URLs with /x after script name
| From: | edink@php.net | Date: | Mon, 15 Oct 2001 21:42:32 +0000 |
| Subject: | Bug #13316 Updated: CGI dies (Premature end of script headers) with URLs with /x after script name | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67982@lists.php.net to get a copy of this message | ||
ID: 13316
Updated by: edink
Reported By: jobarr@herzeleid.com
Old Status: Open
Status: Closed
Bug Type: URL related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:
It is not possible to handle such requests due to the limitiations of CGI protocol. PHP will not
crash, it will just output:
Fatal error - Unable to open /site/root/script.php/1
which is not valid response and thus the error message. It's probably better that way than to
reveal the full path of the script in question.
If you really want that functionality install PHP as web server module.
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 09:34:59] ahill@php.net
I can conform this also occurs on linux 2.2.19.
Best regards,
Andrew
------------------------------------------------------------------------
[2001-09-15 05:46:35] jobarr@herzeleid.com
I am using the binary from this site.
Anytime I access a PHP script with any characters after a / after the script name, it gives me an
internal server error 500 and says "Premature end of script headers: c:/php/php.exe" in
the error log.
What I mean is if I type "http://localhost/script.php/1" it will crash. I
want to do this so I can avoid "http://localhost/script.php?test=1" for
search engines.
It works fine in module mode though!!
I hope this makes sense...it is hard to explain =)
I am using apache 1.3.20.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13316&edit=1