diff options
author | Zeev Suraski <zeev@php.net> | 2000-01-17 17:33:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-01-17 17:33:37 +0000 |
commit | 62114c18068610dc02b7a28e74d3d2957e3315fd (patch) | |
tree | 53dc05ad4216381535f5985c6f615a432785b962 /Zend/zend_variables.c | |
parent | ec386cc9fde380aaa4af823e75950365d8bb98da (diff) | |
download | php-git-62114c18068610dc02b7a28e74d3d2957e3315fd.tar.gz |
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r-- | Zend/zend_variables.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index ae795524cd..99bf710936 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -52,10 +52,10 @@ ZEND_API inline void var_uninit(zval *var) } -ZEND_API int _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC) +ZEND_API void _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC) { if (zvalue->type==IS_LONG) { - return 1; + return; } switch(zvalue->type) { case IS_STRING: @@ -84,10 +84,9 @@ ZEND_API int _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC) case IS_BOOL: case IS_NULL: default: - return 1; + return; break; } - return 1; } @@ -169,14 +168,14 @@ ZEND_API int _zval_copy_ctor_wrapper(zval *zvalue) } -ZEND_API int _zval_dtor_wrapper(zval *zvalue) +ZEND_API void _zval_dtor_wrapper(zval *zvalue) { - return zval_dtor(zvalue); + zval_dtor(zvalue); } -ZEND_API int _zval_ptr_dtor_wrapper(zval **zval_ptr) +ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr) { return zval_ptr_dtor(zval_ptr); } |