summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-12-08 01:57:37 +0000
committerFelipe Pena <felipe@php.net>2009-12-08 01:57:37 +0000
commita94558c855ed4a9a53b3b2db226884a26bff6d4e (patch)
treedd06c337d767f8a20e6b4bb4fc697022f80af276 /ext/pcre
parenta9044795da419e0002ac9ab5a3ce8f96c6de0323 (diff)
downloadphp-git-a94558c855ed4a9a53b3b2db226884a26bff6d4e.tar.gz
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 8d1cffb4a8..846d3b6123 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -1314,9 +1314,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, int is_callable_repl
if (!zend_is_callable(*replace, 0, &callback_name TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name);
efree(callback_name);
- *return_value = **subject;
- zval_copy_ctor(return_value);
- INIT_PZVAL(return_value);
+ MAKE_COPY_ZVAL(subject, return_value);
return;
}
efree(callback_name);