mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Add missing initialization check to RegexIterator::getRegex()
This commit is contained in:
parent
8bda799d6f
commit
a0c231c0f5
@ -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);
|
||||
} /* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user