Bug #14466 Updated: No _POST/_GET vars with filename matching
| From: | hostmaster at sparklit dot com | Date: | Wed, 12 Dec 2001 20:16:48 +0000 |
| Subject: | Bug #14466 Updated: No _POST/_GET vars with filename matching | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73390@lists.php.net to get a copy of this message | ||
ID: 14466
User updated by: hostmaster@sparklit.com
Reported By: hostmaster@sparklit.com
Status: Analyzed
Bug Type: Apache related
Operating System: Red Hat Linux 7.0
PHP Version: 4.1.0
New Comment:
This bug is very critical as most applications will not work
without access to POST and GET variable.
They variable are also not accessible in $HTTP_GET_VARS and $HTTP_POST_VARS (which are always empty
arrays).
Previous Comments:
------------------------------------------------------------------------
[2001-12-12 14:53:21] sander@php.net
Confirmed on Windows 2000/Apache 1.3.22 with both 4.1.0 and a recent (10-dec) 4.2.0-dev build...
You need mod_negotiation enabled in Apache to use the multiview option, which performs this
extension-guessing (http://httpd.apache.org/docs/content-negotiation.html).
Should we mark this bug as critical? IMO, we should, we can't encourage users to use $_GET and
$_POST if they're useless via multiviews.
------------------------------------------------------------------------
[2001-12-12 14:41:05] hostmaster@sparklit.com
The Post and Get arrays do not get populated when the filename in the URL does not have the
extension. (Apache allows us to access files without their extension)
If we access a file as:
http://server.com/file.php?foo=bar
Then foo=bar will be set in _GET. however, if we access the same file as:
http://server.com/file?foo=bar
Then _GET will be an empty array. Same is true for _POST.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14466&edit=1