php-src/ext/xml
Tim Düsterhus a5df26691d
ext/xml: Suppress libxml deprecation for _xmlParserCtxt.inState (#19131)
The FreeBSD build fails due to the deprecation and -Werror:

    2025-07-15T00:37:20.8390774Z /home/runner/work/php-src/php-src/ext/xml/compat.c:358:38: error: 'instate' is deprecated [-Werror,-Wdeprecated-declarations]
    2025-07-15T00:37:20.8392577Z   358 |                 if (ret == NULL || parser->parser->instate == XML_PARSER_CONTENT) {
    2025-07-15T00:37:20.8393184Z       |                                                    ^
    2025-07-15T00:37:20.8394006Z /usr/local/include/libxml2/libxml/parser.h:309:33: note: 'instate' has been explicitly marked deprecated here
    2025-07-15T00:37:20.8394903Z   309 |     xmlParserInputState instate XML_DEPRECATED_MEMBER;
    2025-07-15T00:37:20.8395413Z       |                                 ^
    2025-07-15T00:37:20.8396166Z /usr/local/include/libxml2/libxml/xmlexports.h:74:50: note: expanded from macro 'XML_DEPRECATED_MEMBER'
    2025-07-15T00:37:20.8397058Z    74 |     #define XML_DEPRECATED_MEMBER __attribute__((deprecated))
    2025-07-15T00:37:20.8397581Z       |                                                  ^
    2025-07-15T00:37:20.8425542Z 1 error generated.
2025-07-16 18:23:54 +02:00
..
tests Fix GHSA-wg4p-4hqh-c3g9 2025-03-11 21:50:17 +01:00
compat.c ext/xml: Suppress libxml deprecation for _xmlParserCtxt.inState (#19131) 2025-07-16 18:23:54 +02:00
config.m4 Use a common setup macro to detect the Expat library 2019-06-04 10:10:50 +02:00
config.w32
CREDITS
expat_compat.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_xml.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
xml.c Fix GHSA-wg4p-4hqh-c3g9 2025-03-11 21:50:17 +01:00
xml.stub.php Fix return type of stub of xml_parse_into_struct() 2023-09-21 19:48:40 +02:00
xml_arginfo.h Fix return type of stub of xml_parse_into_struct() 2023-09-21 19:48:40 +02:00