Skip to content

Commit fe070fc

Browse files
committed
Fix yet another xml deprecation
1 parent 667b28c commit fe070fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/xml/compat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ XML_GetCurrentByteIndex(XML_Parser parser)
716716
* Although that should probably be corrected at one point? (TODO) */
717717
xmlCharEncodingHandlerPtr encoder = NULL;
718718
xmlParserInputPtr input = parser->parser->input;
719+
ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations")
719720
if (input->buf) {
720721
encoder = input->buf->encoder;
721722
input->buf->encoder = NULL;
@@ -724,6 +725,7 @@ XML_GetCurrentByteIndex(XML_Parser parser)
724725
if (encoder) {
725726
input->buf->encoder = encoder;
726727
}
728+
ZEND_DIAGNOSTIC_IGNORED_END
727729
/* TODO: at one point this should return long probably to make sure that files greater than 2 GiB are handled correctly. */
728730
return (int) result;
729731
}

0 commit comments

Comments
 (0)