Re: Bug or expected behavior?
| From: | Nikita Popov | Date: | Tue, 31 May 2016 19:59:34 +0000 |
| Subject: | Re: Bug or expected behavior? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93659@lists.php.net to get a copy of this message | ||
On Tue, May 31, 2016 at 9:54 PM, Marc Bennewitz <dev@mabe.berlin> wrote:
> Hi,
>
> today I was running into an issue with a function lookup over namespace.
>
> https://3v4l.org/qF7cK fails
> https://3v4l.org/evVic works
>
> For me it looks like the function lookup for "is_null" in this case gets
> cached on first use
> and on second call no check will be done if this function exists in the
> current namespace
> before looking in the root namespace.
>
> Because PHP is a dynamic language this behavior looks wrong (unexpected)
> to me
> and also HHVM does handle it as I would expect it.
>
> Thanks,
> Marc
>
This is a known issue: https://bugs.php.net/bug.php?id=64346
Regards,
Nikita