From 1cfbb21790ff6dd4931223c5bdc18a0cebf3ffd4 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 13 Oct 2018 15:30:27 +0200 Subject: Classify object handlers are required/optional --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 8114625e68..59ff6526a7 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4173,7 +4173,7 @@ ZEND_METHOD(reflection_class, hasProperty) } RETURN_TRUE; } else { - if (Z_TYPE(intern->obj) != IS_UNDEF && Z_OBJ_HANDLER(intern->obj, has_property)) { + if (Z_TYPE(intern->obj) != IS_UNDEF) { ZVAL_STR_COPY(&property, name); if (Z_OBJ_HANDLER(intern->obj, has_property)(&intern->obj, &property, 2, NULL)) { zval_ptr_dtor(&property); -- cgit v1.2.1