Skip to content

Commit

Permalink
Add missing initialization check to RegexIterator::getRegex()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 14, 2020
1 parent 8bda799 commit a0c231c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/spl/spl_iterators.c
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,8 @@ SPL_METHOD(RegexIterator, getRegex)
return;
}

SPL_FETCH_AND_CHECK_DUAL_IT(intern, ZEND_THIS);

RETURN_STR_COPY(intern->u.regex.regex);
} /* }}} */

Expand Down

0 comments on commit a0c231c

Please sign in to comment.