diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-07-06 18:47:30 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-07-06 18:47:30 +0800 |
commit | f9297387f434b91e75db64ea32df8f22ee98bcde (patch) | |
tree | 5b02e621b4adc3e13c0f2a1c88345e7743d20cac /Zend/zend_variables.h | |
parent | e3355ac5ec1787b84ffd08c863dfbd26fe7bfb0f (diff) | |
download | php-git-f9297387f434b91e75db64ea32df8f22ee98bcde.tar.gz |
Rename zval_dtor_func and ref_dotr_func
Diffstat (limited to 'Zend/zend_variables.h')
-rw-r--r-- | Zend/zend_variables.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Zend/zend_variables.h b/Zend/zend_variables.h index ebc6c5b40c..50cd38c28d 100644 --- a/Zend/zend_variables.h +++ b/Zend/zend_variables.h @@ -28,16 +28,16 @@ BEGIN_EXTERN_C() -ZEND_API void ZEND_FASTCALL _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC); +ZEND_API void ZEND_FASTCALL _ref_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC); ZEND_API void ZEND_FASTCALL _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC); -#define zval_dtor_func(zv) _zval_dtor_func(zv ZEND_FILE_LINE_CC) +#define ref_dtor_func(ref) _ref_dtor_func(ref ZEND_FILE_LINE_CC) #define zval_copy_ctor_func(zv) _zval_copy_ctor_func(zv ZEND_FILE_LINE_CC) static zend_always_inline void _zval_ptr_dtor_nogc(zval *zval_ptr ZEND_FILE_LINE_DC) { if (Z_REFCOUNTED_P(zval_ptr) && !Z_DELREF_P(zval_ptr)) { - _zval_dtor_func(Z_COUNTED_P(zval_ptr) ZEND_FILE_LINE_RELAY_CC); + _ref_dtor_func(Z_COUNTED_P(zval_ptr) ZEND_FILE_LINE_RELAY_CC); } } @@ -46,7 +46,7 @@ static zend_always_inline void i_zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC) if (Z_REFCOUNTED_P(zval_ptr)) { zend_refcounted *ref = Z_COUNTED_P(zval_ptr); if (!GC_DELREF(ref)) { - _zval_dtor_func(ref ZEND_FILE_LINE_RELAY_CC); + _ref_dtor_func(ref ZEND_FILE_LINE_RELAY_CC); } else { gc_check_possible_root(ref); } @@ -92,6 +92,7 @@ ZEND_API void _zval_internal_ptr_dtor(zval *zvalue ZEND_FILE_LINE_DC); /* Kept for compatibility */ #define zval_dtor(zvalue) zval_ptr_dtor_nogc(zvalue) #define zval_internal_dtor(zvalue) _zval_internal_ptr_dtor((zvalue) ZEND_FILE_LINE_CC) +#define zval_dtor_func _ref_dtor_func #if ZEND_DEBUG ZEND_API void _zval_ptr_dtor_wrapper(zval *zval_ptr); |