From fe070fcc7568e16536ca9d5c1a8f9cd750bd45de Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Wed, 3 Dec 2025 14:51:52 +0100 Subject: [PATCH] Fix yet another xml deprecation --- ext/xml/compat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/xml/compat.c b/ext/xml/compat.c index 3afb100eb73..db01141bbda 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -716,6 +716,7 @@ XML_GetCurrentByteIndex(XML_Parser parser) * Although that should probably be corrected at one point? (TODO) */ xmlCharEncodingHandlerPtr encoder = NULL; xmlParserInputPtr input = parser->parser->input; + ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations") if (input->buf) { encoder = input->buf->encoder; input->buf->encoder = NULL; @@ -724,6 +725,7 @@ XML_GetCurrentByteIndex(XML_Parser parser) if (encoder) { input->buf->encoder = encoder; } + ZEND_DIAGNOSTIC_IGNORED_END /* TODO: at one point this should return long probably to make sure that files greater than 2 GiB are handled correctly. */ return (int) result; }