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

Reply via email to