From 29eae4e2b9844731bdeeeda34074d41a5b33de17 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 12 Dec 2025 01:29:43 +0000 Subject: [PATCH] Zend: mark zend_free_internal_arg_info() static Previously it was by the disable_classes INI, as this no longer exists there is no need to expose it. --- Zend/zend_compile.h | 1 - Zend/zend_opcode.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 86fab4b57ded6..9586ee572369c 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -976,7 +976,6 @@ ZEND_API ZEND_COLD void zend_user_exception_handler(void); } \ } while (0) -void zend_free_internal_arg_info(zend_internal_function *function); ZEND_API void destroy_zend_function(zend_function *function); ZEND_API void zend_function_dtor(zval *zv); ZEND_API void destroy_zend_class(zval *zv); diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 1962c7b5a56d1..8835d84786ece 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -124,7 +124,7 @@ ZEND_API void zend_type_release(zend_type type, bool persistent) { } } -void zend_free_internal_arg_info(zend_internal_function *function) { +static void zend_free_internal_arg_info(zend_internal_function *function) { if ((function->fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS)) && function->arg_info) {