Skip to content

Commit cc4951e

Browse files
committed
Revert "Remove always-false check"
This reverts commit 45c93c1.
1 parent 6060567 commit cc4951e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/dom/php_dom.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,7 @@ 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-
ZEND_ASSERT(string_key != NULL);
425-
426-
if (entry->read_func(obj, &value) == FAILURE) {
424+
if (entry->read_func(obj, &value) == FAILURE || !string_key) {
427425
continue;
428426
}
429427

0 commit comments

Comments
 (0)