We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 595b746 + f3cb9a8 commit 6dcabd9Copy full SHA for 6dcabd9
1 file changed
ext/libxml/libxml.c
@@ -932,11 +932,13 @@ PHP_LIBXML_API void php_libxml_initialize(void)
932
ZEND_IGNORE_LEAKS_BEGIN();
933
934
xmlInitParser();
935
-#ifdef LIBXML_SCHEMAS_ENABLED
+#ifdef ZTS
936
+# ifdef LIBXML_SCHEMAS_ENABLED
937
xmlSchemaInitTypes();
-#endif
938
-#ifdef LIBXML_RELAXNG_ENABLED
+# endif
939
+# ifdef LIBXML_RELAXNG_ENABLED
940
xmlRelaxNGInitTypes();
941
942
#endif
943
ZEND_IGNORE_LEAKS_END();
944
0 commit comments