Here's a patch against HEAD for get_object_vars in
zend_builtin_functions.c that checks for the return value of the
handler. With this change it should at least now be safe to implement
the handler and return NULL, as this was the only spot I found in the
engine that checked only for the existe
I've run into the same thing with PHP-GTK. While Zend engine itself
may check for existence of handler, PHP code does not.
-Andrei
On Jan 27, 2006, at 8:47 AM, Rob Richards wrote:
Is it required that the get_properties handler be implemented for
an object?
In the source there are places
Is it required that the get_properties handler be implemented for an object?
In the source there are places that it tests if it is implemented and
then tests the returned value in the event it is NULL.
The problem is that this is not consistent throughout the zend and php
source and I'm getting