1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Silence deprecations in zend-test
This commit is contained in:
Niels Dossche
2023-12-06 23:49:25 +01:00

View File

@@ -45,6 +45,7 @@
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
# include <libxml/globals.h>
# include <libxml/parser.h>
# include "ext/dom/php_dom.h"
#endif
ZEND_DECLARE_MODULE_GLOBALS(zend_test)
@@ -377,12 +378,14 @@ static ZEND_FUNCTION(zend_test_override_libxml_global_state)
{
ZEND_PARSE_PARAMETERS_NONE();
PHP_LIBXML_IGNORE_DEPRECATIONS_START
xmlLoadExtDtdDefaultValue = 1;
xmlDoValidityCheckingDefaultValue = 1;
(void) xmlPedanticParserDefault(1);
(void) xmlSubstituteEntitiesDefault(1);
(void) xmlLineNumbersDefault(1);
(void) xmlKeepBlanksDefault(0);
PHP_LIBXML_IGNORE_DEPRECATIONS_END
}
#endif