From 6ee8e4bcccfba2e31fe6d951c92b135f6c5580a6 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 30 Jul 2001 20:11:28 +0000 Subject: Make this compile in ZTS mode. --- ext/domxml/php_domxml.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index a13bd0d7f0..83b1760a7c 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -391,7 +391,8 @@ void *php_xpath_get_object(zval *wrapper, int rsrc_type1, int rsrc_type2) void *obj; zval **handle; int type; - + TSRMLS_FETCH(); + if (Z_TYPE_P(wrapper) != IS_OBJECT) { php_error(E_ERROR, "Wrapper is not an object"); } @@ -470,7 +471,8 @@ void *php_xpath_get_context(zval *wrapper, int rsrc_type1, int rsrc_type2) void *obj; zval **handle; int type; - + TSRMLS_FETCH(); + if (Z_TYPE_P(wrapper) != IS_OBJECT) { php_error(E_ERROR, "Wrapper is not an object"); } @@ -549,6 +551,7 @@ void *php_dom_get_object(zval *wrapper, int rsrc_type1, int rsrc_type2) void *obj; zval **handle; int type; + TSRMLS_FETCH(); if (Z_TYPE_P(wrapper) != IS_OBJECT) { php_error(E_ERROR, "Wrapper is not an object"); -- cgit v1.2.1