php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24510 Unable to access global variables
Submitted: 2003-07-06 01:43 UTC Modified: 2003-07-07 09:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: chuayw2000 at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.0b1 (beta1) OS: Windows XP (Professional) SP1
Private report: No CVE-ID: None
 [2003-07-06 01:43 UTC] chuayw2000 at hotmail dot com
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.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-06 05:33 UTC] postings-php-bug at hans-spath dot de
Could this be a duplicate of bug #24401?
 [2003-07-06 12:11 UTC] chuayw2000 at hotmail dot com
No. I cannot even access variables like $PHP_SELF and $_GET. And I am using IIS 5.1.
 [2003-07-07 09:10 UTC] sniper@php.net
It is the same issue as in bug #24401

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 08:01:28 2024 UTC