Skip to content

Commit de3c5c0

Browse files
committed
Silence deprecations in zend-test
Forgot it here...
1 parent e2d9731 commit de3c5c0

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
@@ -43,6 +43,7 @@
4343
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
4444
# include <libxml/globals.h>
4545
# include <libxml/parser.h>
46+
# include "ext/dom/php_dom.h"
4647
#endif
4748

4849
ZEND_DECLARE_MODULE_GLOBALS(zend_test)
@@ -326,12 +327,14 @@ static ZEND_FUNCTION(zend_test_override_libxml_global_state)
326327
{
327328
ZEND_PARSE_PARAMETERS_NONE();
328329

330+
PHP_LIBXML_IGNORE_DEPRECATIONS_START
329331
xmlLoadExtDtdDefaultValue = 1;
330332
xmlDoValidityCheckingDefaultValue = 1;
331333
(void) xmlPedanticParserDefault(1);
332334
(void) xmlSubstituteEntitiesDefault(1);
333335
(void) xmlLineNumbersDefault(1);
334336
(void) xmlKeepBlanksDefault(0);
337+
PHP_LIBXML_IGNORE_DEPRECATIONS_END
335338
}
336339
#endif
337340

0 commit comments

Comments
 (0)