Use ZEND_THIS macro to hide implementation details in extensions code.

This commit is contained in:
Dmitry Stogov 2018-11-15 19:54:19 +03:00
parent 8f2f80668e
commit 0f7f1498be
54 changed files with 688 additions and 687 deletions

View file

@ -529,7 +529,7 @@ static PHP_METHOD(SQLite, sqliteCreateFunction)
Z_PARAM_LONG(flags)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
dbh = Z_PDO_DBH_P(&EX(This));
dbh = Z_PDO_DBH_P(ZEND_THIS);
PDO_CONSTRUCT_CHECK;
if (!zend_is_callable(callback, 0, NULL)) {
@ -601,7 +601,7 @@ static PHP_METHOD(SQLite, sqliteCreateAggregate)
Z_PARAM_LONG(argc)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
dbh = Z_PDO_DBH_P(&EX(This));
dbh = Z_PDO_DBH_P(ZEND_THIS);
PDO_CONSTRUCT_CHECK;
if (!zend_is_callable(step_callback, 0, NULL)) {
@ -661,7 +661,7 @@ static PHP_METHOD(SQLite, sqliteCreateCollation)
Z_PARAM_ZVAL(callback)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
dbh = Z_PDO_DBH_P(&EX(This));
dbh = Z_PDO_DBH_P(ZEND_THIS);
PDO_CONSTRUCT_CHECK;
if (!zend_is_callable(callback, 0, NULL)) {