From: Yasuo Ohgaki Date: Mon, 4 Feb 2002 11:43:07 +0000 (+0000) Subject: Fix ZTS build X-Git-Tag: BEFORE_NEW_OBJECT_MODEL~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=488f6a706d66a97f4c9d5cc5671ce179d0662491;p=php Fix ZTS build --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 0979fd4541..c26131162d 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -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); diff --git a/ext/msession/msession.c b/ext/msession/msession.c index 11150df5ac..68f9c86f19 100644 --- a/ext/msession/msession.c +++ b/ext/msession/msession.c @@ -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)) {