summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index 41f99e9cfd..92d682aea7 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -899,6 +899,7 @@ static zval *xpath_context_get_data(void *obj)
static void php_xpath_set_context(zval *wrapper, void *obj, int rsrc_type)
{
zval *handle, *addr;
+ TSRMLS_FETCH();
MAKE_STD_ZVAL(handle);
Z_TYPE_P(handle) = IS_LONG;
@@ -954,6 +955,7 @@ static void xmlparser_set_data(void *obj, zval *wrapper)
static void php_xmlparser_set_object(zval *wrapper, void *obj, int rsrc_type)
{
zval *handle, *addr;
+ TSRMLS_FETCH();
MAKE_STD_ZVAL(handle);
Z_TYPE_P(handle) = IS_LONG;
@@ -1071,6 +1073,7 @@ void *php_dom_get_object(zval *wrapper, int rsrc_type1, int rsrc_type2 TSRMLS_DC
static void php_dom_set_object(zval *wrapper, void *obj, int rsrc_type)
{
zval *handle, *addr;
+ TSRMLS_FETCH();
MAKE_STD_ZVAL(handle);
Z_TYPE_P(handle) = IS_LONG;