Skip to content

Commit 6ee8e4b

Browse files
author
foobar
committed
Make this compile in ZTS mode.
1 parent 40c7f09 commit 6ee8e4b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/domxml/php_domxml.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ void *php_xpath_get_object(zval *wrapper, int rsrc_type1, int rsrc_type2)
391391
void *obj;
392392
zval **handle;
393393
int type;
394-
394+
TSRMLS_FETCH();
395+
395396
if (Z_TYPE_P(wrapper) != IS_OBJECT) {
396397
php_error(E_ERROR, "Wrapper is not an object");
397398
}
@@ -470,7 +471,8 @@ void *php_xpath_get_context(zval *wrapper, int rsrc_type1, int rsrc_type2)
470471
void *obj;
471472
zval **handle;
472473
int type;
473-
474+
TSRMLS_FETCH();
475+
474476
if (Z_TYPE_P(wrapper) != IS_OBJECT) {
475477
php_error(E_ERROR, "Wrapper is not an object");
476478
}
@@ -549,6 +551,7 @@ void *php_dom_get_object(zval *wrapper, int rsrc_type1, int rsrc_type2)
549551
void *obj;
550552
zval **handle;
551553
int type;
554+
TSRMLS_FETCH();
552555

553556
if (Z_TYPE_P(wrapper) != IS_OBJECT) {
554557
php_error(E_ERROR, "Wrapper is not an object");

0 commit comments

Comments
 (0)