http://bugs.php.net/bug.php?id=20760 (reported 18 months ago :D)
After having the confirmation from php.internals that this was the intended behavior, I was seeking for the right place to put this OOP gotcha. I want to add the supplied example with Sara's answer : http://news.php.net/php.internals/10832
Browsing http://fr.php.net/oop, I see no good place to put it. It can go in http://fr.php.net/manual/en/keyword.paamayim-nekudotayim.php but I was thinking about creating a new <sect1> under language/oop.xml named "Classes and Objects gotcha" (or whatever we choose).
Opinions ? Thanks !
It is best to document it under keyword.paamayim-nekudotayim IMHO, it belongs in there.
I think that you should wait for Boris (or someone else) to rewrite the OOP related things. The documentation is really outdated for PHP 5, so I think we should rewrite the docs and then take a look to this bug later.
Do not wait for Boris. He has moved to a different location, and has no computer currently. I have received a forwarded letter from him appologizing that he is unable to move on with the OOP 5 section soon. It is up for grabs if someone can do it sooner (or we can wait for Boris for some uncertain time).
Goba