This documentation already exists in that section. I'll amend my diff to reference this section. Something along the lines of "PHP 5's object model also significantly changes the way objects are handled, and each variable representation contains an object identifier instead of the object itself. Passing objects by reference is no longer necessary. See Objects and References."
Brandon On Wed, Sep 9, 2009 at 3:54 AM, Hannes Magnusson <hannes.magnus...@gmail.com > wrote: > On Wed, Sep 9, 2009 at 01:29, Brandon Savage<bran...@brandonsavage.net> > wrote: > > However, each spot where the documentation states that objects are passed > by > > reference is wrong. See this blog post by Sara Golemon: > > http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html > > > [...] > > > > I'm not sure how to change the documentation to reflect this. How > specific > > should we get in the documentation? > > I have no problem with this lie. > Trying to come up with a new wording for this will only confuse people > [even more]. > > At most, changing it to "reference like" and add an example along the lines > of > <?php > $a = new stdclass; > $b = $a; > $a = "foo"; > var_dump($b); > ?> > to the language.oop5.references chapter > > -Hannes >