mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
b3a56bd558
php_pcre_replace_impl() can fail and return NULL. We should take that error condition into account. Because other failures return false, we return false here as well. At first, I also thought there was a potential memory leak in the error check of replacement_str, but found that the error condition can never trigger, so replace that with an assertion. Closes GH-14292.