Skip to content

Commit f6268b8

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Silence deprecations in zend-test
2 parents f3ee902 + de3c5c0 commit f6268b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/zend_test/test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
4646
# include <libxml/globals.h>
4747
# include <libxml/parser.h>
48+
# include "ext/dom/php_dom.h"
4849
#endif
4950

5051
ZEND_DECLARE_MODULE_GLOBALS(zend_test)
@@ -377,12 +378,14 @@ static ZEND_FUNCTION(zend_test_override_libxml_global_state)
377378
{
378379
ZEND_PARSE_PARAMETERS_NONE();
379380

381+
PHP_LIBXML_IGNORE_DEPRECATIONS_START
380382
xmlLoadExtDtdDefaultValue = 1;
381383
xmlDoValidityCheckingDefaultValue = 1;
382384
(void) xmlPedanticParserDefault(1);
383385
(void) xmlSubstituteEntitiesDefault(1);
384386
(void) xmlLineNumbersDefault(1);
385387
(void) xmlKeepBlanksDefault(0);
388+
PHP_LIBXML_IGNORE_DEPRECATIONS_END
386389
}
387390
#endif
388391

0 commit comments

Comments
 (0)