mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
- Use zval_ctor_func() for wrapper and update the prototype to void
This commit is contained in:
parent
67fc0f2bfe
commit
4a03738225
@ -152,9 +152,9 @@ ZEND_API int zend_print_variable(zval *var)
|
||||
|
||||
|
||||
#if ZEND_DEBUG
|
||||
ZEND_API int _zval_copy_ctor_wrapper(zval *zvalue)
|
||||
ZEND_API void _zval_copy_ctor_wrapper(zval *zvalue)
|
||||
{
|
||||
return zval_copy_ctor(zvalue);
|
||||
zval_copy_ctor(zvalue);
|
||||
}
|
||||
|
||||
|
||||
|
@ -57,7 +57,7 @@ ZEND_API void _zval_internal_ptr_dtor(zval **zvalue ZEND_FILE_LINE_DC);
|
||||
#define zval_internal_ptr_dtor(zvalue) _zval_internal_ptr_dtor((zvalue) ZEND_FILE_LINE_CC)
|
||||
|
||||
#if ZEND_DEBUG
|
||||
ZEND_API int _zval_copy_ctor_wrapper(zval *zvalue);
|
||||
ZEND_API void _zval_copy_ctor_wrapper(zval *zvalue);
|
||||
ZEND_API void _zval_dtor_wrapper(zval *zvalue);
|
||||
ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
|
||||
ZEND_API void _zval_internal_dtor_wrapper(zval *zvalue);
|
||||
@ -68,8 +68,8 @@ ZEND_API void _zval_internal_ptr_dtor_wrapper(zval **zvalue);
|
||||
#define zval_internal_dtor_wrapper _zval_internal_dtor_wrapper
|
||||
#define zval_internal_ptr_dtor_wrapper _zval_internal_ptr_dtor_wrapper
|
||||
#else
|
||||
#define zval_copy_ctor_wrapper _zval_copy_ctor
|
||||
#define zval_dtor_wrapper _zval_dtor
|
||||
#define zval_copy_ctor_wrapper _zval_copy_ctor_func
|
||||
#define zval_dtor_wrapper _zval_dtor_func
|
||||
#define zval_ptr_dtor_wrapper _zval_ptr_dtor
|
||||
#define zval_internal_dtor_wrapper _zval_internal_dtor
|
||||
#define zval_internal_ptr_dtor_wrapper _zval_internal_ptr_dtor
|
||||
|
Loading…
Reference in New Issue
Block a user