Skip to content

Commit a0c231c

Browse files
committed
Add missing initialization check to RegexIterator::getRegex()
1 parent 8bda799 commit a0c231c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/spl/spl_iterators.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,8 @@ SPL_METHOD(RegexIterator, getRegex)
20992099
return;
21002100
}
21012101

2102+
SPL_FETCH_AND_CHECK_DUAL_IT(intern, ZEND_THIS);
2103+
21022104
RETURN_STR_COPY(intern->u.regex.regex);
21032105
} /* }}} */
21042106

0 commit comments

Comments
 (0)