summaryrefslogtreecommitdiff
path: root/ext/dom/nodelist.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-11-15 19:54:19 +0300
committerDmitry Stogov <dmitry@zend.com>2018-11-15 19:54:19 +0300
commit0f7f1498be549f5988bf9d8150f35bedf70741c5 (patch)
treeb9cada88f6a43fbcf2b1316ed8386a3249b0fa4a /ext/dom/nodelist.c
parent8f2f80668e6988ac8907920d177e531a98dcb8b0 (diff)
downloadphp-git-0f7f1498be549f5988bf9d8150f35bedf70741c5.tar.gz
Use ZEND_THIS macro to hide implementation details in extensions code.
Diffstat (limited to 'ext/dom/nodelist.c')
-rw-r--r--ext/dom/nodelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/nodelist.c b/ext/dom/nodelist.c
index 3078c1abbe..da39f6a6c2 100644
--- a/ext/dom/nodelist.c
+++ b/ext/dom/nodelist.c
@@ -109,7 +109,7 @@ PHP_FUNCTION(dom_nodelist_count)
zval *id;
dom_object *intern;
- id = &EX(This);
+ id = ZEND_THIS;
if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -139,7 +139,7 @@ PHP_FUNCTION(dom_nodelist_item)
xmlNodePtr nodep, curnode;
int count = 0;
- id = &EX(This);
+ id = ZEND_THIS;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &index) == FAILURE) {
return;
}