summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-10-04 10:56:43 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-10-04 12:46:50 +0200
commitf48ee1ff58da5cb2aadf617b6f0c34cd2a7a973c (patch)
treee2bb7ee855a67a5760482c88ed8074a766c7001d /Zend/zend_builtin_functions.c
parent74d138e4a3c0cb408112d23b88ccb0e4a8571c48 (diff)
downloadphp-git-f48ee1ff58da5cb2aadf617b6f0c34cd2a7a973c.tar.gz
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.
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 586b9d4e7f..f68388cd20 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -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;
}