Skip to content

Commit 45c93c1

Browse files
committed
Remove always-false check
There are no prop handlers with a NULL key.
1 parent 44fa68b commit 45c93c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/dom/php_dom.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ static HashTable* dom_get_debug_info_helper(zend_object *object, int *is_temp) /
421421
ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(prop_handlers, string_key, entry) {
422422
zval value;
423423

424-
if (entry->read_func(obj, &value) == FAILURE || !string_key) {
424+
ZEND_ASSERT(string_key != NULL);
425+
426+
if (entry->read_func(obj, &value) == FAILURE) {
425427
continue;
426428
}
427429

0 commit comments

Comments
 (0)