Re: oop5 basic rewrite informal RFC
| From: | Hannes Magnusson | Date: | Wed, 09 Sep 2009 07:54:35 +0000 |
| Subject: | Re: oop5 basic rewrite informal RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969380829@lists.php.net to get a copy of this message | ||
On Wed, Sep 9, 2009 at 01:29, Brandon Savage<brandon@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