Bug #14466 Updated: No _POST/_GET vars with filename matching
| From: | sander@php.net | Date: | Wed, 12 Dec 2001 19:53:21 +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-73386@lists.php.net to get a copy of this message | ||
ID: 14466
Updated by: sander
Reported By: hostmaster@sparklit.com
Old Status: Open
Status: Analyzed
Bug Type: Apache related
Operating System: Red Hat Linux 7.0
PHP Version: 4.1.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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