summaryrefslogtreecommitdiff
path: root/Zend/zend.h
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 /Zend/zend.h
parenta9044795da419e0002ac9ab5a3ce8f96c6de0323 (diff)
downloadphp-git-a94558c855ed4a9a53b3b2db226884a26bff6d4e.tar.gz
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 0e3ea84dc3..f547c4c8dc 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -710,6 +710,11 @@ END_EXTERN_C()
FREE_ZVAL(pzv); \
} \
INIT_PZVAL(&(zv));
+
+#define MAKE_COPY_ZVAL(ppzv, pzv) \
+ *(pzv) = **(ppzv); \
+ zval_copy_ctor((pzv)); \
+ INIT_PZVAL((pzv));
#define REPLACE_ZVAL_VALUE(ppzv_dest, pzv_src, copy) { \
int is_ref, refcount; \