Skip to content

Commit 75d8449

Browse files
committed
Fix not thread safe RelaxNG invocations in ZTS builds
1 parent f14e5fc commit 75d8449

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PHP NEWS
2020
filter is provided). (Girgias)
2121

2222
- LibXML:
23-
. Fix not thread safe xmlSchemaParse calls. (SpencerMalone)
23+
. Fix not thread safe schema/relaxng calls. (SpencerMalone, nielsdos)
2424

2525
- Opcache:
2626
. Fixed bug GH-20081 (access to uninitialized vars in preload_load()).

ext/libxml/libxml.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,9 @@ PHP_LIBXML_API void php_libxml_initialize(void)
938938
xmlInitParser();
939939
#ifdef LIBXML_SCHEMAS_ENABLED
940940
xmlSchemaInitTypes();
941+
#endif
942+
#ifdef LIBXML_RELAXNG_ENABLED
943+
xmlRelaxNGInitTypes();
941944
#endif
942945
ZEND_IGNORE_LEAKS_END();
943946

0 commit comments

Comments
 (0)