diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 6c0a882cdf5..e57ad0de331 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 e3740030030..7d080fa223a 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