summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-10-09 12:51:05 +0200
committerNikita Popov <nikic@php.net>2014-10-09 12:51:05 +0200
commit43f1c94ddace679cac008b674ef983199a951542 (patch)
tree69030b975c55d5e7ce67fa365e2ca4d342996253 /ext/mbstring/php_mbregex.c
parente919caca86d78a25d4de10d2df2e1c4357ac4408 (diff)
downloadphp-git-43f1c94ddace679cac008b674ef983199a951542.tar.gz
Review a few more SEPARATE_ZVAL_IF_NOT_REF usages
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index de0bc768ad..8be88c3fee 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -1343,8 +1343,7 @@ PHP_FUNCTION(mb_ereg_search_init)
zval_ptr_dtor(&MBREX(search_str));
}
- ZVAL_COPY(&MBREX(search_str), arg_str);
- SEPARATE_ZVAL_IF_NOT_REF(&MBREX(search_str));
+ ZVAL_DUP(&MBREX(search_str), arg_str);
MBREX(search_pos) = 0;