Replace getThis() by EX(This), when additional check is not necessary.

This commit is contained in:
Dmitry Stogov 2018-11-14 02:44:25 +03:00
parent 6bb94eacd7
commit c6ad0b92b7
44 changed files with 569 additions and 753 deletions

View file

@ -46,7 +46,6 @@ const zend_function_entry php_dom_entityreference_class_functions[] = {
/* {{{ proto DOMEntityReference::__construct(string name) */
PHP_METHOD(domentityreference, __construct)
{
zval *id = getThis();
xmlNode *node;
xmlNodePtr oldnode = NULL;
dom_object *intern;
@ -70,7 +69,7 @@ PHP_METHOD(domentityreference, __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) {