mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
74d138e4a3
commit
f48ee1ff58
6 changed files with 8 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue