We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 667b28c commit fe070fcCopy full SHA for fe070fc
1 file changed
ext/xml/compat.c
@@ -716,6 +716,7 @@ XML_GetCurrentByteIndex(XML_Parser parser)
716
* Although that should probably be corrected at one point? (TODO) */
717
xmlCharEncodingHandlerPtr encoder = NULL;
718
xmlParserInputPtr input = parser->parser->input;
719
+ ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations")
720
if (input->buf) {
721
encoder = input->buf->encoder;
722
input->buf->encoder = NULL;
@@ -724,6 +725,7 @@ XML_GetCurrentByteIndex(XML_Parser parser)
724
725
if (encoder) {
726
input->buf->encoder = encoder;
727
}
728
+ ZEND_DIAGNOSTIC_IGNORED_END
729
/* TODO: at one point this should return long probably to make sure that files greater than 2 GiB are handled correctly. */
730
return (int) result;
731
0 commit comments