Skip to content

Commit 53f5cfd

Browse files
committed
Drop multi_convert_* APIs
These are no longer used internally, and I'd rather they weren't used externally either.
1 parent 682e2f6 commit 53f5cfd

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

Zend/zend_operators.c

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -771,54 +771,6 @@ ZEND_API void ZEND_FASTCALL convert_to_object(zval *op) /* {{{ */
771771
}
772772
/* }}} */
773773

774-
ZEND_API void multi_convert_to_long_ex(int argc, ...) /* {{{ */
775-
{
776-
zval *arg;
777-
va_list ap;
778-
779-
va_start(ap, argc);
780-
781-
while (argc--) {
782-
arg = va_arg(ap, zval *);
783-
convert_to_long_ex(arg);
784-
}
785-
786-
va_end(ap);
787-
}
788-
/* }}} */
789-
790-
ZEND_API void multi_convert_to_double_ex(int argc, ...) /* {{{ */
791-
{
792-
zval *arg;
793-
va_list ap;
794-
795-
va_start(ap, argc);
796-
797-
while (argc--) {
798-
arg = va_arg(ap, zval *);
799-
convert_to_double_ex(arg);
800-
}
801-
802-
va_end(ap);
803-
}
804-
/* }}} */
805-
806-
ZEND_API void multi_convert_to_string_ex(int argc, ...) /* {{{ */
807-
{
808-
zval *arg;
809-
va_list ap;
810-
811-
va_start(ap, argc);
812-
813-
while (argc--) {
814-
arg = va_arg(ap, zval *);
815-
convert_to_string_ex(arg);
816-
}
817-
818-
va_end(ap);
819-
}
820-
/* }}} */
821-
822774
static zend_always_inline zend_long ZEND_FASTCALL _zval_get_long_func_ex(zval *op, zend_bool silent) /* {{{ */
823775
{
824776
try_again:

Zend/zend_operators.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,6 @@ ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
265265
ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
266266
ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
267267
ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
268-
ZEND_API void multi_convert_to_long_ex(int argc, ...);
269-
ZEND_API void multi_convert_to_double_ex(int argc, ...);
270-
ZEND_API void multi_convert_to_string_ex(int argc, ...);
271268

272269
ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op);
273270
ZEND_API double ZEND_FASTCALL zval_get_double_func(zval *op);

0 commit comments

Comments
 (0)