Return value of get_properties handler
| From: | Christoph M. Becker | Date: | Tue, 20 Nov 2018 10:43:51 +0000 |
| Subject: | Return value of get_properties handler | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-103462@lists.php.net to get a copy of this message | ||
Hi!
With regard to bug #77177[1], I'm wondering whether a get_properties
handler[2] is allowed to return NULL, or whether an empty hash table has
to be returned instead.
Can any of the engine experts please clarify? (Might be useful to add
this info to the comment in the source code as well.)
[1] <https://bugs.php.net/bug.php?id=77177>
[2]
<https://github.com/php/php-src/blob/php-7.3.0RC5/Zend/zend_object_handlers.h#L91-L92>
--
Christoph M. Becker