Re: Consensus Gathering: is_initialized
| From: | Guilliam Xavier | Date: | Thu, 27 May 2021 16:14:49 +0000 |
| Subject: | Re: Consensus Gathering: is_initialized | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114649@lists.php.net to get a copy of this message | ||
On Thu, May 27, 2021 at 3:55 PM Andreas Leathley <a.leathley@gmx.net> wrote:
> Also, is_initialized cannot be done in
> userland, as passing an unitialized property to a function already leads
> to an error
>
The feature request was indeed
is_initialized($foo->bar) (language
construct, akin to isset); but the PR was only proposing
is_initialized($foo, 'bar') (regular function, akin to property_exists).
Anyway, that's a "Wont fix".
(PS about previous messages: I actually don't write custom serializers
myself)
--
Guilliam Xavier