summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-09-29 11:17:43 +0300
committerDmitry Stogov <dmitry@zend.com>2015-09-29 11:17:43 +0300
commit560e4fa39327e952652b6469d9644fc5fa2c15fa (patch)
treeb91589369c569d8efe84785303b58ad0fdd17c18 /ext/pcre/php_pcre.c
parent617bef558bbc8e2dd7682d9f407963b4a88092eb (diff)
downloadphp-git-560e4fa39327e952652b6469d9644fc5fa2c15fa.tar.gz
Removed or simplified incorrect SEPARATE_*() macros usage.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 0 insertions, 2 deletions
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);
}