From: bugs dot php dot net at sig11 dot com Operating system: Solaris 8 PHP version: 4.3.5 PHP Bug Type: Scripting Engine problem Bug description: $_GET empty if a single URL-specified variable is empty
Description: ------------ With PHP running as a CGI under Apache2 and suPHP (http://suphp.org) If you have a URL like: http://blah.com/blah.php?transform=yes&sortby= The ENTIRE $_GET array will be empty. But if you have: http://blah.com/blah.php?transform=yes It will work fine. It would appear having emtpy CGI GET variables screws up PHP. Reproduce code: --------------- //For the script blah.php?transform=yes&sortby= echo "transform: $_GET['transform']"; Expected result: ---------------- transform: yes Actual result: -------------- <nothing> -- Edit bug report at http://bugs.php.net/?id=27740&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27740&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27740&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27740&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27740&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27740&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27740&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27740&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27740&r=support Expected behavior: http://bugs.php.net/fix.php?id=27740&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27740&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27740&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27740&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27740&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27740&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27740&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27740&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27740&r=float