From:             joemiggs82 at yahoo dot com
Operating system: windows 95/98
PHP version:      4.3.1
PHP Bug Type:     Session related
Bug description:  $GLOBALS array doesn't seem to work

Description:
------------
Assuming register_globals is turned off in the php.ini file, the $GLOBALS
variable array will then be used in accessing variables defined in the
script.

In our case, this doesn't seem to work.

Reproduce code:
---------------
<html>
<body>
<a href="thisfile.php?nav=MORE">Click me for more!</a>
<?
if($GLOBALS["nav"]=="MORE")
{
echo "You just clicked for more!";
}
else
{
?>
<?
}
?>
</body>
</html>


Expected result:
----------------
Before:

Click me for more!

After clicking:

Click me for more!
You just clicked for more!

Actual result:
--------------
Before:

Click me for more!

After clicking:

Click me for more!


-- 
Edit bug report at http://bugs.php.net/?id=24276&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24276&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24276&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24276&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24276&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24276&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24276&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24276&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24276&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24276&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24276&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24276&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24276&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24276&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24276&r=gnused

Reply via email to