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

@ -621,7 +621,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_doc)
zend_string *ret_class = NULL;
xsl_object *intern;
id = getThis();
id = &EX(This);
intern = Z_XSL_P(id);
sheetp = (xsltStylesheetPtr) intern->ptr;
@ -678,7 +678,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_uri)
char *uri;
xsl_object *intern;
id = getThis();
id = &EX(This);
intern = Z_XSL_P(id);
sheetp = (xsltStylesheetPtr) intern->ptr;
@ -710,7 +710,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml)
int doc_txt_len;
xsl_object *intern;
id = getThis();
id = &EX(This);
intern = Z_XSL_P(id);
sheetp = (xsltStylesheetPtr) intern->ptr;