Commit fe070fcc756 for php.net
commit fe070fcc7568e16536ca9d5c1a8f9cd750bd45de
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Wed Dec 3 14:51:52 2025 +0100
Fix yet another xml deprecation
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;
}