diff options
author | Nikita Popov <nikic@php.net> | 2014-10-09 12:51:05 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-10-09 12:51:05 +0200 |
commit | 43f1c94ddace679cac008b674ef983199a951542 (patch) | |
tree | 69030b975c55d5e7ce67fa365e2ca4d342996253 /ext/mbstring/php_mbregex.c | |
parent | e919caca86d78a25d4de10d2df2e1c4357ac4408 (diff) | |
download | php-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.c | 3 |
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; |