#27861 [Opn]: GET parameters not parsed when = is at the end
| From: | nospam at unclassified dot de | Date: | Mon, 05 Apr 2004 15:28:18 +0000 |
| Subject: | #27861 [Opn]: GET parameters not parsed when = is at the end | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57551@lists.php.net to get a copy of this message | ||
ID: 27861
User updated by: nospam at unclassified dot de
Reported By: nospam at unclassified dot de
Status: Open
Bug Type: CGI related
Operating System: Linux
PHP Version: 4.3.5
New Comment:
Update:
I found out the problem goes away when I disable suPHP (yes, didn't
think of that; info: www.suphp.org). I'm currently over the suPHP
source hoping to find the problem there.
Previous Comments:
------------------------------------------------------------------------
[2004-04-04 17:18:47] nospam at unclassified dot de
Description:
------------
When I request a PHP script with the last GET parameter empty, e.g.
http://server/file.php?var1=1&var2= the
entire $_GET array will be
empty. This does not apply for Windows, I can only see this bug on
Linux. Adding another variable or simply a & at the URL solves the
problem. I'm using Apache 2.0.49 webserver.
Reproduce code:
---------------
file.php:
<?php
var_dump($_GET);
?>
call this in your browser:
file.php?var1=1&var2=
Expected result:
----------------
something like "array (var1 => 1, var2 => )"
Actual result:
--------------
array ()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27861&edit=1