We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d8449 commit f3cb9a8Copy full SHA for f3cb9a8
1 file changed
ext/libxml/libxml.c
@@ -936,11 +936,13 @@ PHP_LIBXML_API void php_libxml_initialize(void)
936
ZEND_IGNORE_LEAKS_BEGIN();
937
938
xmlInitParser();
939
-#ifdef LIBXML_SCHEMAS_ENABLED
+#ifdef ZTS
940
+# ifdef LIBXML_SCHEMAS_ENABLED
941
xmlSchemaInitTypes();
-#endif
942
-#ifdef LIBXML_RELAXNG_ENABLED
+# endif
943
+# ifdef LIBXML_RELAXNG_ENABLED
944
xmlRelaxNGInitTypes();
945
946
#endif
947
ZEND_IGNORE_LEAKS_END();
948
0 commit comments