Skip to content

Commit 6f1e1d2

Browse files
committed
fix a potential infinite loop
1 parent 0fbbd26 commit 6f1e1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3088,7 +3088,7 @@ ZEND_API zend_type_node *zend_type_to_interned_tree(const zend_type type) {
30883088
zend_type_node *child = zend_type_to_interned_tree(*subtype);
30893089

30903090
if (child->kind == kind) {
3091-
for (uint32_t i = 0; child->compound.num_types; i++) {
3091+
for (uint32_t i = 0; i < child->compound.num_types; i++) {
30923092
ADD_TO_TYPE_TREE(children, num_children, child->compound.types[i]);
30933093
}
30943094
} else {

0 commit comments

Comments
 (0)