From af59e92b24c8f624672720d47ef65bd8457728b9 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 25 Aug 2014 21:51:49 +0200 Subject: master renames phase 7 --- ext/pdo_sqlite/sqlite_driver.c | 4 ++-- ext/pdo_sqlite/sqlite_statement.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/pdo_sqlite') diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index da69448d5d..1fff450623 100644 --- a/ext/pdo_sqlite/sqlite_driver.c +++ b/ext/pdo_sqlite/sqlite_driver.c @@ -301,7 +301,7 @@ static int pdo_sqlite_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val TSRMLS_ switch (attr) { case PDO_ATTR_TIMEOUT: - convert_to_int(val); + convert_to_long(val); sqlite3_busy_timeout(H->db, Z_LVAL_P(val) * 1000); return 1; } @@ -497,7 +497,7 @@ static int php_sqlite3_collation_callback(void *context, php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback"); } else if (!Z_ISUNDEF(retval)) { if (Z_TYPE(retval) != IS_LONG) { - convert_to_int_ex(&retval); + convert_to_long_ex(&retval); } ret = 0; if (Z_LVAL(retval) > 0) { diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index feaff73b94..2cf271c0d3 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -117,7 +117,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d return 1; } } else { - convert_to_int(parameter); + convert_to_long(parameter); #if ZEND_LONG_MAX > 2147483647 if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { return 1; -- cgit v1.2.1