From: chuayw2000 at hotmail dot com Operating system: Windows XP (Professional) SP1 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Variables related Bug description: Unable to access global variables
Description: ------------ I am unable to access variables like $REMOTE_ADDR even though register_globals and track_vars are set to on. I can't even access the $_POST or $_GET variables. The page below is requested with a query of trial=trial (page.php?trial=trial) Reproduce code: --------------- <?php echo $REMOTE_ADDR."<br>"; echo $_GET["trial"]; ?> Expected result: ---------------- An ip address (in my case 127.0.0.1 cos I am running using localhost) and a newline with the text "trial" should have been seen. Actual result: -------------- The page returned with nothing but only a "<br>" html tag. However, the variables are present in the phpinfo() function. -- Edit bug report at http://bugs.php.net/?id=24510&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24510&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24510&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24510&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24510&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24510&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24510&r=support Expected behavior: http://bugs.php.net/fix.php?id=24510&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24510&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24510&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24510&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24510&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24510&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24510&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24510&r=gnused