Re: [VOTE] get_class() disallow null parameter
| From: | Leigh | Date: | Sun, 25 Sep 2016 09:29:11 +0000 |
| Subject: | Re: [VOTE] get_class() disallow null parameter | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96132@lists.php.net to get a copy of this message | ||
On Sun, 25 Sep 2016 at 06:29 Pierre Joye <pierre.php@gmail.com> wrote:
> Also this behavior is clearly documented:
>
> http://th1.php.net/manual/en/function.get-class.php
>
> "If object is omitted when inside a class, the name of that class is
> returned."
>
> I am opposed to break BC because we change our mind about how clean is this
> behavior and I recommend the (future) RMs to veto this change.
>
> Cheers
> Pierre
>
This is ambiguous at best.
"Omitted" and "Not omitted but set to null" are different things.
I'm +/-0 on the RFC, but I would not agree that the documentation is clear.