Skip to content

Commit f3cb9a8

Browse files
committed
Wrap the normally lazy-initialized components in ZTS
1 parent 75d8449 commit f3cb9a8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/libxml/libxml.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,11 +936,13 @@ PHP_LIBXML_API void php_libxml_initialize(void)
936936
ZEND_IGNORE_LEAKS_BEGIN();
937937

938938
xmlInitParser();
939-
#ifdef LIBXML_SCHEMAS_ENABLED
939+
#ifdef ZTS
940+
# ifdef LIBXML_SCHEMAS_ENABLED
940941
xmlSchemaInitTypes();
941-
#endif
942-
#ifdef LIBXML_RELAXNG_ENABLED
942+
# endif
943+
# ifdef LIBXML_RELAXNG_ENABLED
943944
xmlRelaxNGInitTypes();
945+
# endif
944946
#endif
945947
ZEND_IGNORE_LEAKS_END();
946948

0 commit comments

Comments
 (0)