Clarify that the get_properties handler is required

Some places were checking for non-null get_properties, some weren't.
Make it clear that the handler is required and such checks are not
necessary.
This commit is contained in:
Nikita Popov 2018-10-04 10:56:43 +02:00
parent 74d138e4a3
commit f48ee1ff58
6 changed files with 8 additions and 17 deletions

View file

@ -1174,12 +1174,7 @@ ZEND_FUNCTION(get_object_vars)
Z_PARAM_OBJECT(obj)
ZEND_PARSE_PARAMETERS_END();
if (Z_OBJ_HT_P(obj)->get_properties == NULL) {
RETURN_FALSE;
}
properties = Z_OBJ_HT_P(obj)->get_properties(obj);
if (properties == NULL) {
RETURN_FALSE;
}