ID:               31899
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at simplicate dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: Linux 2.4.22-1.2199 - Apache 2.0
 PHP Version:      4.3.8
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation 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

$$var = &$v;

resolves to

$(value of $mmm) = &$v;

Since $mmm contains no value nothing happens.


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

[2005-02-09 16:18:40] php at simplicate dot it

In order for the link i posted to work it needs to include the "08" on
the end... altho it has been wrapped by your parser function, just
making sure - it maybe quite obvious but i really want this problem
looked into / commented on and not cast aside.

http://ourproperty.co.uk/test/index.php?code=0&allowin=SECurePHRase808

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

[2005-02-09 16:08:54] php at simplicate dot it

Description:
------------
When a variable variable is globalized into a function and then its
value is set to a reference of another variable, the variable
variable's value does not extend past that of the function.

Reproduce code:
---------------
$v = 'albert';

function test($var){

        global $$var, $v;

        $$var = &$v;

}

test('mmm');

var_dump($mmm);
exit;

// for further examples follow the link below:
//
http://www.ourproperty.co.uk/test/index.php?code=0&allowin=SECurePHRase808


Expected result:
----------------
string(6) "albert" 

Actual result:
--------------
NULL


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


-- 
Edit this bug report at http://bugs.php.net/?id=31899&edit=1

Reply via email to