From: Xinchen Hui Date: Fri, 30 Jan 2015 14:11:21 +0000 (+0800) Subject: Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03 X-Git-Tag: PRE_PHP7_REMOVALS~21^2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f5d01026932ebc601c33cb56148d0a2ece8e7a3;p=php Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 0e4ef4c9cd..65f80fd38c 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4055,6 +4055,7 @@ static zend_long php_str_replace_in_subject(zval *search, zval *replace, zval *s if (replace_entry_str) { zend_string_release(replace_entry_str); + replace_entry_str = NULL; } zend_string_release(Z_STR_P(result)); ZVAL_STR(result, tmp_result);