From d1917c918ede3c6e6e5c13cc6c78b68cb71e41ff Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sat, 26 Apr 2025 03:45:02 +0100 Subject: [PATCH] ext/libxml: libxml_set_external_entity_loader() always returns true --- ext/libxml/libxml.stub.php | 2 +- ext/libxml/libxml_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/libxml/libxml.stub.php b/ext/libxml/libxml.stub.php index 519861e918d..ce257b54ab4 100644 --- a/ext/libxml/libxml.stub.php +++ b/ext/libxml/libxml.stub.php @@ -182,6 +182,6 @@ function libxml_clear_errors(): void {} #[\Deprecated(since: '8.0', message: 'as external entity loading is disabled by default')] function libxml_disable_entity_loader(bool $disable = true): bool {} -function libxml_set_external_entity_loader(?callable $resolver_function): bool {} +function libxml_set_external_entity_loader(?callable $resolver_function): true {} function libxml_get_external_entity_loader(): ?callable {} diff --git a/ext/libxml/libxml_arginfo.h b/ext/libxml/libxml_arginfo.h index 86336d09c7d..b2eac9399df 100644 --- a/ext/libxml/libxml_arginfo.h +++ b/ext/libxml/libxml_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: e0d2498c10cba72adb97504fd13e178e090de2cd */ + * Stub hash: 6dceb619736a3de55b84609a9e3aeb13405bbfde */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0) ZEND_ARG_INFO(0, context) @@ -22,7 +22,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_disable_entity_loader, 0, ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, disable, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_external_entity_loader, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_external_entity_loader, 0, 1, IS_TRUE, 0) ZEND_ARG_TYPE_INFO(0, resolver_function, IS_CALLABLE, 1) ZEND_END_ARG_INFO()