diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-30 22:11:21 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-30 22:11:21 +0800 |
commit | 4f5d01026932ebc601c33cb56148d0a2ece8e7a3 (patch) | |
tree | 206d5cb10bdc5fd92857821e6414f8edd5efc1b3 | |
parent | e78dd7ade2ac5e617bc5f515a04d1e1d87bd53ee (diff) | |
download | php-git-4f5d01026932ebc601c33cb56148d0a2ece8e7a3.tar.gz |
Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03
-rw-r--r-- | ext/standard/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |