php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17701 Documentation about super-globals
Submitted: 2002-06-11 11:18 UTC Modified: 2002-08-23 21:45 UTC
From: bate@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bate@php.net
New email:
PHP Version: OS:

 

 [2002-06-11 11:18 UTC] bate@php.net
<?php
$x = '_GET';
print_r($$x);
?>

it not possible to access superglobals with this type dynamic vars.

because they are super-globals, not globals. so they are in no namespace hash table?

I think this should be commentet.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-11 11:25 UTC] goba@php.net
Seems to be a duplicate of
http://bugs.php.net/bug.php?id=15479

I also reported a bug with this, and it contained
much more info (like this WORKED in global scope
with the version I was using). I am said, I cannot find that bug now...

Goba
 [2002-06-14 17:20 UTC] philip@php.net
This was discussed in the lists but I can't find these discussions :/  iirc, Derick mentioned why it doesn't work but I don't remember what was said exactly or if a final conclusion was made.  Maybe this behavior will change?
 [2002-08-23 21:45 UTC] sniper@php.net
Here is a note about this:

http://www.php.net/manual/en/language.variables.variable.php

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 09:01:33 2025 UTC