#39293 [Opn->Fbk]: no GET variables available if one of them is empty

From: Date: Sun, 29 Oct 2006 00:00:10 +0000
Subject: #39293 [Opn->Fbk]: no GET variables available if one of them is empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104127@lists.php.net to get a copy of this message
ID: 39293 Updated by: tony2001@php.net Reported By: mcalpine at susysearch dot co dot za -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: redhat PHP Version: 4.4.4 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Can't reproduce. Previous Comments: ------------------------------------------------------------------------ [2006-10-28 22:23:43] mcalpine at susysearch dot co dot za Description: ------------ if a url is sent with one or more of the query variable values empty, eg: index.php?hello=yes&goodbye= , the whole $_GET global is emtpy and the $_SERVER['REQUEST_URI'] is emtpy too. as soon as you send a value for all query variables, the GET and SERVER variables have data. Reproduce code: --------------- just try var_dump($_GET)... or echo $_SERVER['REQUEST_URI']; Expected result: ---------------- i would expect to see the url query variables... Actual result: -------------- described above. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39293&edit=1

« previous php.bugs (#104127) next »