summaryrefslogtreecommitdiff
path: root/ext/sqlite3
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-15 12:30:54 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-15 12:33:06 +0100
commit3e01f5afb1b52fe26a956190296de0192eedeec1 (patch)
tree77531ec93e3f3cef9891c77b5ca553eb8487f121 /ext/sqlite3
parente2c8ab7c33ac5328485c43db5080c5bf4911ce38 (diff)
downloadphp-git-3e01f5afb1b52fe26a956190296de0192eedeec1.tar.gz
Replace zend_bool uses with bool
We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
Diffstat (limited to 'ext/sqlite3')
-rw-r--r--ext/sqlite3/php_sqlite3_structs.h2
-rw-r--r--ext/sqlite3/sqlite3.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h
index 80e915da68..07b0c8ba95 100644
--- a/ext/sqlite3/php_sqlite3_structs.h
+++ b/ext/sqlite3/php_sqlite3_structs.h
@@ -74,7 +74,7 @@ typedef struct _php_sqlite3_db_object {
zend_fcall_info authorizer_fci;
zend_fcall_info_cache authorizer_fcc;
- zend_bool exception;
+ bool exception;
zend_llist free_list;
zend_object zo;
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index cd91e68fd3..cfd0cb7eae 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -306,7 +306,7 @@ PHP_METHOD(SQLite3, enableExtendedResultCodes)
{
php_sqlite3_db_object *db_obj;
zval *object = ZEND_THIS;
- zend_bool enable = 1;
+ bool enable = 1;
db_obj = Z_SQLITE3_DB_P(object);
int ret;
@@ -660,7 +660,7 @@ PHP_METHOD(SQLite3, querySingle)
zend_string *sql;
char *errtext = NULL;
int return_code;
- zend_bool entire_row = 0;
+ bool entire_row = 0;
sqlite3_stmt *stmt;
db_obj = Z_SQLITE3_DB_P(object);
@@ -1281,7 +1281,7 @@ PHP_METHOD(SQLite3, enableExceptions)
{
php_sqlite3_db_object *db_obj;
zval *object = ZEND_THIS;
- zend_bool enableExceptions = 0;
+ bool enableExceptions = 0;
db_obj = Z_SQLITE3_DB_P(object);
@@ -1607,7 +1607,7 @@ static int php_sqlite3_bind_params(php_sqlite3_stmt *stmt_obj) /* {{{ */
PHP_METHOD(SQLite3Stmt, getSQL)
{
php_sqlite3_stmt *stmt_obj;
- zend_bool expanded = 0;
+ bool expanded = 0;
zval *object = getThis();
stmt_obj = Z_SQLITE3_STMT_P(object);
int bind_rc;