#24562 [NEW]: Server variables are invisible with register_globals on
| From: | sagi at boom dot org dot il | Date: | Wed, 09 Jul 2003 13:55:34 +0000 |
| Subject: | #24562 [NEW]: Server variables are invisible with register_globals on | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-43540@lists.php.net to get a copy of this message | ||
From: sagi at boom dot org dot il
Operating system: RedHat 8.0 (Linux 2.4.20)
PHP version: 4.3.3RC1
PHP Bug Type: Variables related
Bug description: Server variables are invisible with register_globals on
Description:
------------
After upgrading to PHP4.3.3RC1 server variables such as $REQUEST_URI are
only accessible using $_SERVER[var], with register_globals turned ON.
You can see running example on my server:
http://beep.boom.org.il/~sagi/php/servar.php?getvar=hello
The source is at:
http://beep.boom.org.il/~sagi/php/servar.phps
Reproduce code:
---------------
print "\$REQUEST_URI is: $REQUEST_URI\n";
print "\$_SERVER[REQUEST_URI] is: $_SERVER[REQUEST_URI]\n";
Expected result:
----------------
$REQUEST_URI is: /~sagi/php/servar.php?getvar=hello
$_SERVER[REQUEST_URI] is: /~sagi/php/servar.php?getvar=hello
Actual result:
--------------
$REQUEST_URI is:
$_SERVER[REQUEST_URI] is: /~sagi/php/servar.php?getvar=hello
--
Edit bug report at http://bugs.php.net/?id=24562&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24562&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24562&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24562&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24562&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24562&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24562&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24562&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24562&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24562&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24562&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24562&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24562&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24562&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24562&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24562&r=gnused