From 4f5d01026932ebc601c33cb56148d0a2ece8e7a3 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 30 Jan 2015 22:11:21 +0800 Subject: [PATCH] Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03 --- ext/standard/string.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.49.0