php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33984 Reference problem
Submitted: 2005-08-03 20:25 UTC Modified: 2005-08-03 20:56 UTC
From: na at index20 dot ru Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.4.0 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: na at index20 dot ru
New email:
PHP Version: OS:

 

 [2005-08-03 20:25 UTC] na at index20 dot ru
Description:
------------
See reproduce code.


Reproduce code:
---------------
<?php
class A {}
class RefTest {
        function RefTest() {
                $this->a = new A;
                $this->b =& $this->a;
        }
}
$rt = new RefTest();
var_dump($rt);
?>


Expected result:
----------------
object(reftest)(2) {
  ["a"]=>
  object(a)(0) {
  }
  ["b"]=>
  &object(a)(0) {
  }
}

Actual result:
--------------
object(reftest)(2) {
  ["a"]=>
  &object(a)(0) {
  }
  ["b"]=>
  &object(a)(0) {
  }
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-03 20:33 UTC] derick@php.net
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

.
 [2005-08-03 20:43 UTC] na at index20 dot ru
I'd like to see a little explanation of this problem. Sorry that wasting your time, but i can't find this 'feature' in documentation.

Thanks.
 [2005-08-03 20:56 UTC] derick@php.net
For support ask on one of our mailinglists - this is not a support forum.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Mar 26 09:00:01 2026 UTC