diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-11-15 19:54:19 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-11-15 19:54:19 +0300 |
commit | 0f7f1498be549f5988bf9d8150f35bedf70741c5 (patch) | |
tree | b9cada88f6a43fbcf2b1316ed8386a3249b0fa4a /ext/simplexml/sxe.c | |
parent | 8f2f80668e6988ac8907920d177e531a98dcb8b0 (diff) | |
download | php-git-0f7f1498be549f5988bf9d8150f35bedf70741c5.tar.gz |
Use ZEND_THIS macro to hide implementation details in extensions code.
Diffstat (limited to 'ext/simplexml/sxe.c')
-rw-r--r-- | ext/simplexml/sxe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/simplexml/sxe.c b/ext/simplexml/sxe.c index 290ae9d849..362f43a3d2 100644 --- a/ext/simplexml/sxe.c +++ b/ext/simplexml/sxe.c @@ -43,7 +43,7 @@ PHP_METHOD(ce_SimpleXMLIterator, rewind) return; } - php_sxe_rewind_iterator(Z_SXEOBJ_P(&EX(This))); + php_sxe_rewind_iterator(Z_SXEOBJ_P(ZEND_THIS)); } /* }}} */ @@ -51,7 +51,7 @@ PHP_METHOD(ce_SimpleXMLIterator, rewind) Check whether iteration is valid */ PHP_METHOD(ce_SimpleXMLIterator, valid) { - php_sxe_object *sxe = Z_SXEOBJ_P(&EX(This)); + php_sxe_object *sxe = Z_SXEOBJ_P(ZEND_THIS); if (zend_parse_parameters_none() == FAILURE) { return; @@ -65,7 +65,7 @@ PHP_METHOD(ce_SimpleXMLIterator, valid) Get current element */ PHP_METHOD(ce_SimpleXMLIterator, current) { - php_sxe_object *sxe = Z_SXEOBJ_P(&EX(This)); + php_sxe_object *sxe = Z_SXEOBJ_P(ZEND_THIS); zval *data; if (zend_parse_parameters_none() == FAILURE) { @@ -87,7 +87,7 @@ PHP_METHOD(ce_SimpleXMLIterator, key) { xmlNodePtr curnode; php_sxe_object *intern; - php_sxe_object *sxe = Z_SXEOBJ_P(&EX(This)); + php_sxe_object *sxe = Z_SXEOBJ_P(ZEND_THIS); if (zend_parse_parameters_none() == FAILURE) { return; @@ -115,7 +115,7 @@ PHP_METHOD(ce_SimpleXMLIterator, next) return; } - php_sxe_move_forward_iterator(Z_SXEOBJ_P(&EX(This))); + php_sxe_move_forward_iterator(Z_SXEOBJ_P(ZEND_THIS)); } /* }}} */ @@ -123,7 +123,7 @@ PHP_METHOD(ce_SimpleXMLIterator, next) Check whether element has children (elements) */ PHP_METHOD(ce_SimpleXMLIterator, hasChildren) { - php_sxe_object *sxe = Z_SXEOBJ_P(&EX(This)); + php_sxe_object *sxe = Z_SXEOBJ_P(ZEND_THIS); php_sxe_object *child; xmlNodePtr node; @@ -151,7 +151,7 @@ PHP_METHOD(ce_SimpleXMLIterator, hasChildren) Get child element iterator */ PHP_METHOD(ce_SimpleXMLIterator, getChildren) { - php_sxe_object *sxe = Z_SXEOBJ_P(&EX(This)); + php_sxe_object *sxe = Z_SXEOBJ_P(ZEND_THIS); zval *data; if (zend_parse_parameters_none() == FAILURE) { |