Add missing initialization check to RegexIterator::getRegex()

This commit is contained in:
Nikita Popov 2020-08-14 10:27:09 +02:00
parent 8bda799d6f
commit a0c231c0f5

View File

@ -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);
} /* }}} */