Bug #17936 Updated: GET variables have no value
| From: | cynic@php.net | Date: | Sun, 23 Jun 2002 22:50:33 +0000 |
| Subject: | Bug #17936 Updated: GET variables have no value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11857@lists.php.net to get a copy of this message | ||
ID: 17936
Updated by: cynic@php.net
Reported By: strelitz@kona.net
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: windows 2000 sp2 IIS 5.0
PHP Version: 4.2.1
New Comment:
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php
for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
Previous Comments:
------------------------------------------------------------------------
[2002-06-23 18:47:57] strelitz@kona.net
Variables passed in via a GET are inexplicable undefined. I wrote a
simple script to receive a variable passed in through an URL, and print
it.
The problem is the variable is undefined, though if I put a phpinfo()
function in the script, its output correctly shows my variable and its
value.
Contents of "test.php" script:
<html><head><title>test</title></head>
<body>
<?php
if (empty($test))
{ echo 'parameter "test" undefined';}
else
{ echo 'parameter "test" value is "' . $test . '"' ;}
phpinfo();
?>
</body>
</html>
URL call: http://localhost/test.php?test=hello
Output is "Parameter 'test' undefined"
I expected "Parameter 'test' value is 'hello'"
Though the phpinfo output shows "test=hello" in the QUERYSTRING
variable and "fff" in the _GET["test"] variable.
Am I missing something obvious?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17936&edit=1