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.
This commit is contained in:
BohwaZ 2019-12-10 12:16:46 +01:00 committed by Christoph M. Becker
parent 5f2f450554
commit 3958592487
7 changed files with 283 additions and 18 deletions

View file

@ -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;