Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Backport deprecation warning ignores to unbreak CI
This commit is contained in:
Niels Dossche 2023-12-06 22:18:12 +01:00
commit f3ee902c3d
2 changed files with 25 additions and 2 deletions

View file

@ -350,8 +350,10 @@ PHP_METHOD(XSLTProcessor, importStylesheet)
newdoc = xmlCopyDoc(doc, 1);
xmlNodeSetBase((xmlNodePtr) newdoc, (xmlChar *)doc->URL);
PHP_LIBXML_SANITIZE_GLOBALS(parse);
PHP_LIBXML_IGNORE_DEPRECATIONS_START
xmlSubstituteEntitiesDefault(1);
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
PHP_LIBXML_IGNORE_DEPRECATIONS_END
sheetp = xsltParseStylesheetDoc(newdoc);
PHP_LIBXML_RESTORE_GLOBALS(parse);