mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Backport deprecation warning ignores to unbreak CI
In master I use ZEND_DIAGNOSTIC_IGNORED_START, but that doesn't exist on
8.2 or 8.3 (8.3 has a similar macro though).
So to unbreak CI I just made a variation of this directly in the
php_libxml.h header.
See 683e787860 (commitcomment-134301083)
Closes GH-12887.
This commit is contained in:
parent
0d1bf582ce
commit
e2d97314ab
2 changed files with 25 additions and 2 deletions
|
@ -338,8 +338,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue