ID:               13476
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Suspended
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: linux Debian 2.2
 PHP Version:      4.0.6
 New Comment:

not a bug -> bogus.



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

[2001-12-14 14:08:16] [EMAIL PROTECTED]

Let's set to Suspended.

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

[2001-12-14 14:07:45] [EMAIL PROTECTED]

To me, it is explained in document at least now. Although it may not be
a clear for everyone. This is known issue for a long time.

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

[2001-09-28 06:16:25] [EMAIL PROTECTED]

When I'm triing to use a reference on $this into the constructor of a
object, it's a copy of the reference which is passed.

have a look to this sample.

class A
{
 var $value;
 var $pB;

 function A()
 {
  $this->Value = 100;
 }
}

class B
{
 var $value;
 function B(&$aa)
 {
  $this->value = 200;
  $aa->pB = &$this;
 }
}

$aa = new A();
$bb = new B($aa);
$bb->value = 50;

echo var_dump($aa);

there is no 50 in the repr�sentation of the var_dump function.

I've looked in the doc if this limitation is sp�cified, but NO!

Etienne

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


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

Reply via email to