]> granicus.if.org Git - php/commitdiff
Drop multi_convert_* APIs
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 12 May 2020 15:10:06 +0000 (17:10 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 12 May 2020 15:10:06 +0000 (17:10 +0200)
These are no longer used internally, and I'd rather they weren't
used externally either.

Zend/zend_operators.c
Zend/zend_operators.h

index 562a0f6d5418c4d5299d1b5ca1e7abeebe7a4a60..44151fa7a2c85929c9b83d8e271bb79f3ac999af 100644 (file)
@@ -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:
index 2c3766fd3896510bbb72e5236ef86e1f33a75b34..f3f5412805b6e05830f579e414004365f464ef62 100644 (file)
@@ -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);