From: foobar Date: Mon, 30 Jul 2001 20:11:28 +0000 (+0000) Subject: Make this compile in ZTS mode. X-Git-Tag: PRE_ENGINE2_SPLIT~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ee8e4bcccfba2e31fe6d951c92b135f6c5580a6;p=php Make this compile in ZTS mode. --- 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");