mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Replace getThis() by EX(This), when additional check is not necessary.
This commit is contained in:
parent
6bb94eacd7
commit
c6ad0b92b7
44 changed files with 569 additions and 753 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue