mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Clarify that preg_match_all() cannot return null
This commit is contained in:
commit
3ec55d6cbf
3 changed files with 4 additions and 10 deletions
|
@ -1206,7 +1206,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str,
|
|||
if (subpats != NULL) {
|
||||
subpats = zend_try_array_init(subpats);
|
||||
if (!subpats) {
|
||||
return;
|
||||
RETURN_THROWS();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue