summaryrefslogtreecommitdiff
path: root/ext/sqlite3/php_sqlite3_structs.h
diff options
context:
space:
mode:
authorBohwaZ <bohwaz@github.com>2019-12-10 12:16:46 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-12-20 11:33:23 +0100
commit3958592487d27c792ad44097efdc8164cf376ebb (patch)
tree21eaa265c820041f4b27abd814d23311e9ba34f3 /ext/sqlite3/php_sqlite3_structs.h
parent5f2f450554751ae1cd26d38bd38e7999b64b5206 (diff)
downloadphp-git-3958592487d27c792ad44097efdc8164cf376ebb.tar.gz
Add setAuthorizer method to SQLite3
This adds the possibility to define a userland callback that will be used to authorize or not an action on the database.
Diffstat (limited to 'ext/sqlite3/php_sqlite3_structs.h')
-rw-r--r--ext/sqlite3/php_sqlite3_structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h
index 93bdc3b423..d86f39e431 100644
--- a/ext/sqlite3/php_sqlite3_structs.h
+++ b/ext/sqlite3/php_sqlite3_structs.h
@@ -71,6 +71,8 @@ typedef struct _php_sqlite3_db_object {
sqlite3 *db;
php_sqlite3_func *funcs;
php_sqlite3_collation *collations;
+ zend_fcall_info authorizer_fci;
+ zend_fcall_info_cache authorizer_fcc;
zend_bool exception;