]> granicus.if.org Git - php/commitdiff
Fix ZTS build
authorYasuo Ohgaki <yohgaki@php.net>
Mon, 4 Feb 2002 11:43:07 +0000 (11:43 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Mon, 4 Feb 2002 11:43:07 +0000 (11:43 +0000)
ext/domxml/php_domxml.c
ext/msession/msession.c

index 0979fd4541e19bce1961b39d0df04755fbbcc7ce..c26131162d17b6fa32156a604b01505e3b7d4a2d 100644 (file)
@@ -3468,6 +3468,9 @@ PHP_FUNCTION(domxml_xslt_stylesheet_file)
 static char *php_domxslt_string_to_xpathexpr(const char *str)
 {
        const xmlChar *string = (const xmlChar *)str;
+
+       TSRMLS_FETCH();
+       
        xmlChar *value;
 
         if (xmlStrchr(string, '"')) {
@@ -3501,6 +3504,8 @@ static char **php_domxslt_make_params(zval *idvars, int xpath_params)
        char **params = NULL;
        int i = 0;
 
+       TSRMLS_FETCH();
+
        parht = HASH_OF(idvars);
        parsize = (2 * zend_hash_num_elements(parht) + 1) * sizeof(char *);
        params = (char **)emalloc(parsize);
index 11150df5aca0fb10568dd82c59a119ecdb8ab448..68f9c86f19c9f091968e196c37024927b9fe9eaf 100644 (file)
@@ -176,6 +176,8 @@ PHP_MINFO_FUNCTION(msession)
 
 int PHPMsessionConnect(const char *szhost, int nport)
 {
+       TSRMLS_FETCH();
+       
        if(!s_reqb)
                s_reqb = AllocateRequestBuffer(2048);
 
@@ -185,7 +187,7 @@ int PHPMsessionConnect(const char *szhost, int nport)
        if(s_conn)
        {
                CloseReqConn(s_conn);
-               php_log_err("Call to connect with non-null s_conn");
+               php_log_err("Call to connect with non-null s_conn" TSRMLS_CC);
        }
        if(strcmp(s_szhost, szhost))
        {