summaryrefslogtreecommitdiff
path: root/ext/dom/text.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/text.c
parent6bb94eacd72499b62bf636d1338ba0b77cdf1671 (diff)
downloadphp-git-c6ad0b92b7d8e66a07cf75ed4abc39fe3e13e00d.tar.gz
Replace getThis() by EX(This), when additional check is not necessary.
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r--ext/dom/text.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 6e2773356f..631397312a 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -62,8 +62,6 @@ const zend_function_entry php_dom_text_class_functions[] = {
/* {{{ proto DOMText::__construct([string value]); */
PHP_METHOD(domtext, __construct)
{
-
- zval *id = getThis();
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
char *value = NULL;
@@ -80,7 +78,7 @@ PHP_METHOD(domtext, __construct)
RETURN_FALSE;
}
- intern = Z_DOMOBJ_P(id);
+ intern = Z_DOMOBJ_P(&EX(This));
if (intern != NULL) {
oldnode = dom_object_get_node(intern);
if (oldnode != NULL) {