From: Nikita Popov Date: Tue, 12 May 2020 15:10:06 +0000 (+0200) Subject: Drop multi_convert_* APIs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53f5cfd99eb19a47ce3bb2bd245d14103c9c1194;p=php Drop multi_convert_* APIs These are no longer used internally, and I'd rather they weren't used externally either. --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 562a0f6d54..44151fa7a2 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -771,54 +771,6 @@ try_again: } /* }}} */ -ZEND_API void multi_convert_to_long_ex(int argc, ...) /* {{{ */ -{ - zval *arg; - va_list ap; - - va_start(ap, argc); - - while (argc--) { - arg = va_arg(ap, zval *); - convert_to_long_ex(arg); - } - - va_end(ap); -} -/* }}} */ - -ZEND_API void multi_convert_to_double_ex(int argc, ...) /* {{{ */ -{ - zval *arg; - va_list ap; - - va_start(ap, argc); - - while (argc--) { - arg = va_arg(ap, zval *); - convert_to_double_ex(arg); - } - - va_end(ap); -} -/* }}} */ - -ZEND_API void multi_convert_to_string_ex(int argc, ...) /* {{{ */ -{ - zval *arg; - va_list ap; - - va_start(ap, argc); - - while (argc--) { - arg = va_arg(ap, zval *); - convert_to_string_ex(arg); - } - - va_end(ap); -} -/* }}} */ - static zend_always_inline zend_long ZEND_FASTCALL _zval_get_long_func_ex(zval *op, zend_bool silent) /* {{{ */ { try_again: diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 2c3766fd38..f3f5412805 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -265,9 +265,6 @@ ZEND_API void ZEND_FASTCALL convert_to_null(zval *op); ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op); ZEND_API void ZEND_FASTCALL convert_to_array(zval *op); ZEND_API void ZEND_FASTCALL convert_to_object(zval *op); -ZEND_API void multi_convert_to_long_ex(int argc, ...); -ZEND_API void multi_convert_to_double_ex(int argc, ...); -ZEND_API void multi_convert_to_string_ex(int argc, ...); ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op); ZEND_API double ZEND_FASTCALL zval_get_double_func(zval *op);