Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 826fa36

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: ext/xml: Suppress libxml deprecation for `_xmlParserCtxt.inState` (#19131)
2 parents a57f582 + 034c3f2 commit 826fa36

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
@@ -355,7 +355,9 @@ get_entity(void *user, const xmlChar *name)
355355
if (ret == NULL)
356356
ret = xmlGetDocEntity(parser->parser->myDoc, name);
357357

358+
ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations")
358359
if (ret == NULL || parser->parser->instate == XML_PARSER_CONTENT) {
360+
ZEND_DIAGNOSTIC_IGNORED_END
359361
if (ret == NULL || ret->etype == XML_INTERNAL_GENERAL_ENTITY || ret->etype == XML_INTERNAL_PARAMETER_ENTITY || ret->etype == XML_INTERNAL_PREDEFINED_ENTITY) {
360362
/* Predefined entities will expand unless no cdata handler is present */
361363
if (parser->h_default && ! (ret && ret->etype == XML_INTERNAL_PREDEFINED_ENTITY && parser->h_cdata)) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /