Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #29702 : $a=$GLOBALS works as $a=&$GLOBALS
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 31st July 10:56
External User
 
Posts: 1
Default #29702 : $a=$GLOBALS works as $a=&$GLOBALS



ID: 29702
Updated by: derick@php.net
Reported By: andrea dot busia at axis-sv dot it
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win / Linux
PHP Version: 5.0.1
New Comment:

Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PHP.


Previous Comments:
------------------------------------------------------------------------

[2004-08-16 14:43:45] andrea dot busia at axis-sv dot it

I see the manual page but I don't see anywhere that I cannot COPY
$GLOBALS content to an other variable.

Andrea Busia

------------------------------------------------------------------------

[2004-08-16 14:33:31] derick@php.net

http://no2.php.net/reserved.variables
read the section on $GLOBALS

------------------------------------------------------------------------

[2004-08-16 12:28:03] andrea dot busia at axis-sv dot it

BTW:
Even if I try to use array_diff_assoc to have a "COPY" of $GLOBALS the
script gives me the same result.
I thing this is a very big problem without a "array_copy" function.

I tried:
<?
$xml=array("aaa", "bbb", "ccc");
foo();

function foo() {
var_dump($GLOBALS["xml"]);
$ar=array_diff_assoc($GLOBALS, array());
unset($ar['xml']);
var_dump($GLOBALS["xml"]);
}
?>

------------------------------------------------------------------------

[2004-08-16 12:19:58] andrea dot busia at axis-sv dot it

Is it do***ented? I didn't find this in the manual, probably this is a
do***entation problem.

------------------------------------------------------------------------

[2004-08-16 12:02:05] derick@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is a feature.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29702

--
Edit this bug report at http://bugs.php.net/?id=29702&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666