diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
commit | 9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6 (patch) | |
tree | 3eb7097ebb986594ae03e54142240fca4b82e5f3 /ext/pdo_sqlite | |
parent | 6fe75aad6da55e7ce473109e219fdc80bf3b7a51 (diff) | |
download | php-git-9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6.tar.gz |
Avoid useless dereferences and separations during paramter passing.
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r-- | ext/pdo_sqlite/sqlite_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index 1e3e071fef..fed9dbed2f 100644 --- a/ext/pdo_sqlite/sqlite_driver.c +++ b/ext/pdo_sqlite/sqlite_driver.c @@ -522,7 +522,7 @@ static PHP_METHOD(SQLite, sqliteCreateFunction) ZEND_PARSE_PARAMETERS_START(2, 4) Z_PARAM_STRING(func_name, func_name_len) - Z_PARAM_ZVAL_DEREF(callback) + Z_PARAM_ZVAL(callback) Z_PARAM_OPTIONAL Z_PARAM_LONG(argc) Z_PARAM_LONG(flags) @@ -595,8 +595,8 @@ static PHP_METHOD(SQLite, sqliteCreateAggregate) ZEND_PARSE_PARAMETERS_START(3, 4) Z_PARAM_STRING(func_name, func_name_len) - Z_PARAM_ZVAL_DEREF(step_callback) - Z_PARAM_ZVAL_DEREF(fini_callback) + Z_PARAM_ZVAL(step_callback) + Z_PARAM_ZVAL(fini_callback) Z_PARAM_OPTIONAL Z_PARAM_LONG(argc) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); @@ -658,7 +658,7 @@ static PHP_METHOD(SQLite, sqliteCreateCollation) ZEND_PARSE_PARAMETERS_START(2, 2) Z_PARAM_STRING(collation_name, collation_name_len) - Z_PARAM_ZVAL_DEREF(callback) + Z_PARAM_ZVAL(callback) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); dbh = Z_PDO_DBH_P(getThis()); |