#27861 [NEW]: GET parameters not parsed when = is at the end

From: Date: Sun, 04 Apr 2004 21:18:47 +0000
Subject: #27861 [NEW]: GET parameters not parsed when = is at the end
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57497@lists.php.net to get a copy of this message
From: nospam at unclassified dot de Operating system: Linux PHP version: 4.3.5 PHP Bug Type: CGI related Bug description: GET parameters not parsed when = is at the end 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 bug report at http://bugs.php.net/?id=27861&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27861&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27861&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27861&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27861&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27861&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27861&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27861&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27861&r=support Expected behavior: http://bugs.php.net/fix.php?id=27861&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27861&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27861&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27861&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27861&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27861&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27861&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27861&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27861&r=float

« previous php.bugs (#57497) next »