note 52751 added to language.references.pass

From: Date: Wed, 11 May 2005 17:33:11 +0000
Subject: note 52751 added to language.references.pass
Groups: php.notes 
Request: Send a blank email to php-notes+get-89269@lists.php.net to get a copy of this message
References don't seem to work correctly with objects. I don't seem to be able to nest objects such that each child has a reference to it's parent. The below seems to not work. class tree { var $parentNode; var $childNodes; function tree ( &$parentNode = None ) { $this->parentNode =& $parentNode; } } $parent = new tree (); $child = new tree ( $parent ); ---- Manual Page -- http://www.php.net/manual/en/language.references.pass.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52751 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52751&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52751&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52751&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52751&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52751&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52751&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89269) next »