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