]> granicus.if.org Git - php/commitdiff
Added initialisation for thread safety
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 16:01:50 +0000 (16:01 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 16:01:50 +0000 (16:01 +0000)
ext/xml/xml.c

index 699257de16f902599708c8caf250d1403ec220bb..4d394ab2b8da50df7a160323f8e398db0046a912 100644 (file)
@@ -227,6 +227,9 @@ PHP_MINIT_FUNCTION(xml)
        php_xml_mem_hdlrs.realloc_fcn = php_xml_realloc_wrapper;
        php_xml_mem_hdlrs.free_fcn = php_xml_free_wrapper;
 
+#ifdef LIBXML_EXPAT_COMPAT
+       xmlInitThreads();
+#endif
        return SUCCESS;
 }