php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39293 no GET variables available if one of them is empty
Submitted: 2006-10-28 22:23 UTC Modified: 2006-10-30 10:13 UTC
From: mcalpine at susysearch dot co dot za Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.4 OS: redhat
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mcalpine at susysearch dot co dot za
New email:
PHP Version: OS:

 

 [2006-10-28 22:23 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-29 00:00 UTC] 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-30 02:44 UTC] scottmacvicar at ntlworld dot com
This is a bug in suPHP that we see quite often with customers. 

Nothing to do with PHP itself.
 [2006-10-30 08:42 UTC] tony2001@php.net
Not PHP problem -> bogus.
 [2006-10-30 10:13 UTC] mcalpine at susysearch dot co dot za
well it seems like a php bug to me...
it only started when the host upgraded to php 4.4.4.
how can i fix it?

what is the problem?


thanks
cameron
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 03:00:03 2025 UTC