Skip to content

Commit 0a439fa

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Add missing initialization check to RegexIterator::getRegex()
2 parents 964f669 + a0c231c commit 0a439fa

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
@@ -1899,6 +1899,8 @@ PHP_METHOD(RegexIterator, getRegex)
18991899
RETURN_THROWS();
19001900
}
19011901

1902+
SPL_FETCH_AND_CHECK_DUAL_IT(intern, ZEND_THIS);
1903+
19021904
RETURN_STR_COPY(intern->u.regex.regex);
19031905
} /* }}} */
19041906

0 commit comments

Comments
 (0)