From: Marcus Boerger Date: Thu, 8 Feb 2007 12:29:57 +0000 (+0000) Subject: - More ZEND_API's X-Git-Tag: RELEASE_1_0_1~304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70777b7df6233c69d0e69755536fc9dd277d906e;p=php - More ZEND_API's --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 2783354ed1..9aade4b437 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2882,7 +2882,7 @@ ZEND_API int zend_fcall_info_init(zval *callable, zend_fcall_info *fci, zend_fca return SUCCESS; } -static inline void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem) +ZEND_API void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem) { if (fci->params) { while (fci->param_count) { @@ -2896,7 +2896,7 @@ static inline void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem fci->param_count = 0; } -static inline void zend_fcall_info_args_save(zend_fcall_info *fci, int *param_count, zval ****params) +ZEND_API void zend_fcall_info_args_save(zend_fcall_info *fci, int *param_count, zval ****params) { *param_count = fci->param_count; *params = fci->params; @@ -2904,7 +2904,7 @@ static inline void zend_fcall_info_args_save(zend_fcall_info *fci, int *param_co fci->params = NULL; } -static inline void zend_fcall_info_args_restore(zend_fcall_info *fci, int param_count, zval ***params) +ZEND_API void zend_fcall_info_args_restore(zend_fcall_info *fci, int param_count, zval ***params) { zend_fcall_info_args_clear(fci, 1); fci->param_count = param_count; diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 74df7c2c89..45f9bcaafa 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1527,6 +1527,10 @@ ZEND_API extern zend_fcall_info_cache empty_fcall_info_cache; */ ZEND_API int zend_fcall_info_init(zval *callable, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *callable_name TSRMLS_DC); +ZEND_API void zend_fcall_info_args_clear(zend_fcall_info *fci, int free_mem); +ZEND_API void zend_fcall_info_args_save(zend_fcall_info *fci, int *param_count, zval ****params); +ZEND_API void zend_fcall_info_args_restore(zend_fcall_info *fci, int param_count, zval ***params); + /** Set or clear the arguments in the zend_call_info struct taking care of * refcount. If args is NULL and arguments are set then those are cleared. */