mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
bring back all the TSRMLS_FETCH() stuff
for better comparability with the mainstream
This commit is contained in:
parent
382f95e612
commit
c00424e427
97 changed files with 377 additions and 12 deletions
|
@ -448,6 +448,7 @@ static void php_sqlite3_func_callback(sqlite3_context *context, int argc,
|
|||
sqlite3_value **argv)
|
||||
{
|
||||
struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context);
|
||||
TSRMLS_FETCH();
|
||||
|
||||
do_callback(&func->afunc, &func->func, argc, argv, context, 0 TSRMLS_CC);
|
||||
}
|
||||
|
@ -456,6 +457,7 @@ static void php_sqlite3_func_step_callback(sqlite3_context *context, int argc,
|
|||
sqlite3_value **argv)
|
||||
{
|
||||
struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context);
|
||||
TSRMLS_FETCH();
|
||||
|
||||
do_callback(&func->astep, &func->step, argc, argv, context, 1 TSRMLS_CC);
|
||||
}
|
||||
|
@ -463,6 +465,7 @@ static void php_sqlite3_func_step_callback(sqlite3_context *context, int argc,
|
|||
static void php_sqlite3_func_final_callback(sqlite3_context *context)
|
||||
{
|
||||
struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context);
|
||||
TSRMLS_FETCH();
|
||||
|
||||
do_callback(&func->afini, &func->fini, 0, NULL, context, 1 TSRMLS_CC);
|
||||
}
|
||||
|
@ -475,6 +478,7 @@ static int php_sqlite3_collation_callback(void *context,
|
|||
zval zargs[2];
|
||||
zval retval;
|
||||
struct pdo_sqlite_collation *collation = (struct pdo_sqlite_collation*) context;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
collation->fc.fci.size = sizeof(collation->fc.fci);
|
||||
collation->fc.fci.function_table = EG(function_table);
|
||||
|
@ -759,6 +763,7 @@ static int authorizer(void *autharg, int access_type, const char *arg3, const ch
|
|||
char *filename;
|
||||
switch (access_type) {
|
||||
case SQLITE_COPY: {
|
||||
TSRMLS_FETCH();
|
||||
filename = make_filename_safe(arg4 TSRMLS_CC);
|
||||
if (!filename) {
|
||||
return SQLITE_DENY;
|
||||
|
@ -768,6 +773,7 @@ static int authorizer(void *autharg, int access_type, const char *arg3, const ch
|
|||
}
|
||||
|
||||
case SQLITE_ATTACH: {
|
||||
TSRMLS_FETCH();
|
||||
filename = make_filename_safe(arg3 TSRMLS_CC);
|
||||
if (!filename) {
|
||||
return SQLITE_DENY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue