php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47995 GET doesnt work
Submitted: 2009-04-16 20:55 UTC Modified: 2009-04-16 23:16 UTC
From: valentiny510 at yahoo dot es Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.0RC2 OS: windows xp sp2
Private report: No CVE-ID: None
 [2009-04-16 20:55 UTC] valentiny510 at yahoo dot es
Description:
------------
to resume a long story I just want to say the $_GET doesnt work for me


Reproduce code:
---------------
if ( isset($_GET['test']) ):
	echo 'true';
else:
	echo 'false';
endif;


Expected result:
----------------
with a uri like http://localhost/?test
or
http://localhost/?test=test

normal well be "true"


Actual result:
--------------
false

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-16 21:56 UTC] valentiny510 at yahoo dot es
I found the problem, is when I set arg_separator.input = "&"
Why cant get the "test" with GET when this directive is on ?
I think must affect only the separators like ?test=test&test2=test2.
 [2009-04-16 22:06 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2009-04-16 23:16 UTC] valentiny510 at yahoo dot es
Is not a bug ?
Let supose I have the arg_separator.input a "#" sign and one uri like this /?test=blabla#test2=bla2
if I try to GET['test'] doesnt work !!

to GET anything from the uri MUST have DISABLED the arg_separator.input else DOESNT WORK !!

my question is WHY exist this directive if MUST be disabled to GET something from my uri's

In my opinion if you CAN'T make use of this directive must be a bug don't you ??

Thank you for your time
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 06 20:00:01 2025 UTC