summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-04-21 14:45:10 +0000
committerThies C. Arntzen <thies@php.net>2000-04-21 14:45:10 +0000
commit80486c95be8c84fbe03f918ed3ca48eff708ead0 (patch)
treef021259681ef9dfdb425311844b7c58f903d7ce1
parent36faff14b16aba798035f33fe0041b4ae7674784 (diff)
downloadphp-git-80486c95be8c84fbe03f918ed3ca48eff708ead0.tar.gz
export zval_add-ref and zvale_del_ref
-rw-r--r--Zend/zend_variables.c4
-rw-r--r--Zend/zend_variables.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index 6c0a882cdf..e57ad0de33 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -89,7 +89,7 @@ ZEND_API void _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC)
}
-void zval_del_ref(zval **p)
+ZEND_API void zval_del_ref(zval **p)
{
(*p)->refcount--;
if ((*p)->refcount==0) {
@@ -99,7 +99,7 @@ void zval_del_ref(zval **p)
}
-void zval_add_ref(zval **p)
+ZEND_API void zval_add_ref(zval **p)
{
(*p)->refcount++;
}
diff --git a/Zend/zend_variables.h b/Zend/zend_variables.h
index e374003003..7d080fa223 100644
--- a/Zend/zend_variables.h
+++ b/Zend/zend_variables.h
@@ -48,8 +48,8 @@ ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
END_EXTERN_C()
-void zval_add_ref(zval **p);
-void zval_del_ref(zval **p);
+ZEND_API void zval_add_ref(zval **p);
+ZEND_API void zval_del_ref(zval **p);
#define ZVAL_DESTRUCTOR (void (*)(void *)) zval_dtor_wrapper
#define ZVAL_PTR_DTOR (void (*)(void *)) zval_ptr_dtor_wrapper