From 560e4fa39327e952652b6469d9644fc5fa2c15fa Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 29 Sep 2015 11:17:43 +0300 Subject: Removed or simplified incorrect SEPARATE_*() macros usage. --- ext/pcre/php_pcre.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 3ec6e625a0..66ee238dc4 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1446,12 +1446,10 @@ static int preg_replace_impl(zval *return_value, zval *regex, zval *replace, zva int replace_count = 0, old_replace_count; if (Z_TYPE_P(replace) != IS_ARRAY && (Z_TYPE_P(replace) != IS_OBJECT || !is_callable_replace)) { - SEPARATE_ZVAL(replace); convert_to_string_ex(replace); } if (Z_TYPE_P(regex) != IS_ARRAY) { - SEPARATE_ZVAL(regex); convert_to_string_ex(regex); } -- cgit v1.2.1