From: Moriyoshi Koizumi Date: Thu, 8 May 2003 16:01:50 +0000 (+0000) Subject: Added initialisation for thread safety X-Git-Tag: RELEASE_0_9b~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ad8e3ae38c6f3b43ab9cc956ec26e98b3b0c66;p=php Added initialisation for thread safety --- diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 699257de16..4d394ab2b8 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -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; }