com php-src: Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03: ext/standard/string.c
| From: | Xinchen Hui | Date: | Fri, 30 Jan 2015 14:11:21 +0000 |
| Subject: | com php-src: Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84464@lists.php.net to get a copy of this message | ||
Commit: 4f5d01026932ebc601c33cb56148d0a2ece8e7a3
Author: Xinchen Hui <laruence@php.net> Fri, 30 Jan 2015 22:11:21 +0800
Parents: e78dd7ade2ac5e617bc5f515a04d1e1d87bd53ee
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4f5d01026932ebc601c33cb56148d0a2ece8e7a3
Log:
Fixed segfault introduced in f869bf3829c6b2c94011747c69ed8f32412c9e03
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 0e4ef4c..65f80fd 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);