summaryrefslogtreecommitdiff
path: root/ext/dom/attr.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-11-14 02:44:25 +0300
committerDmitry Stogov <dmitry@zend.com>2018-11-14 02:44:25 +0300
commitc6ad0b92b7d8e66a07cf75ed4abc39fe3e13e00d (patch)
tree7bee04b4a982731b930fce3fef7017c442d46fb0 /ext/dom/attr.c
parent6bb94eacd72499b62bf636d1338ba0b77cdf1671 (diff)
downloadphp-git-c6ad0b92b7d8e66a07cf75ed4abc39fe3e13e00d.tar.gz
Replace getThis() by EX(This), when additional check is not necessary.
Diffstat (limited to 'ext/dom/attr.c')
-rw-r--r--ext/dom/attr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c
index dfe9218b4f..3de5fc3643 100644
--- a/ext/dom/attr.c
+++ b/ext/dom/attr.c
@@ -53,7 +53,6 @@ const zend_function_entry php_dom_attr_class_functions[] = {
/* {{{ proto DOMAttr::__construct(string name, [string value]) */
PHP_METHOD(domattr, __construct)
{
- zval *id = getThis();
xmlAttrPtr nodep = NULL;
xmlNodePtr oldnode = NULL;
dom_object *intern;
@@ -64,7 +63,7 @@ PHP_METHOD(domattr, __construct)
return;
}
- intern = Z_DOMOBJ_P(id);
+ intern = Z_DOMOBJ_P(&EX(This));
name_valid = xmlValidateName((xmlChar *) name, 0);
if (name_valid != 0) {