#39293 [Com]: no GET variables available if one of them is empty

From: Date: Mon, 30 Oct 2006 02:44:17 +0000
Subject: #39293 [Com]: no GET variables available if one of them is empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104153@lists.php.net to get a copy of this message
ID: 39293 Comment by: scottmacvicar at ntlworld dot com Reported By: mcalpine at susysearch dot co dot za Status: Feedback Bug Type: Unknown/Other Function Operating System: redhat PHP Version: 4.4.4 New Comment: This is a bug in suPHP that we see quite often with customers. Nothing to do with PHP itself. Previous Comments: ------------------------------------------------------------------------ [2006-10-29 00:00:10] tony2001@php.net 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. ------------------------------------------------------------------------ [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 (#104153) next »