mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
cleanup TSRMLS_FETCH in ext/pdo*
This commit is contained in:
parent
784f5bb6a2
commit
f7e09105d8
4 changed files with 0 additions and 12 deletions
|
@ -274,7 +274,6 @@ static void param_dtor(zval *el) /* {{{ */
|
|||
|
||||
/* tell the driver that it is going away */
|
||||
if (param->stmt->methods->param_hook) {
|
||||
TSRMLS_FETCH();
|
||||
param->stmt->methods->param_hook(param->stmt, param, PDO_PARAM_EVT_FREE TSRMLS_CC);
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,6 @@ int error_handler(DBPROCESS *dbproc, int severity, int dberr,
|
|||
{
|
||||
pdo_dblib_err *einfo;
|
||||
char *state = "HY000";
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if(dbproc) {
|
||||
einfo = (pdo_dblib_err*)dbgetuserdata(dbproc);
|
||||
|
@ -141,7 +140,6 @@ int msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate,
|
|||
int severity, char *msgtext, char *srvname, char *procname, DBUSMALLINT line)
|
||||
{
|
||||
pdo_dblib_err *einfo;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (severity) {
|
||||
einfo = (pdo_dblib_err*)dbgetuserdata(dbproc);
|
||||
|
|
|
@ -188,7 +188,6 @@ static sb4 oci_bind_input_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dv
|
|||
{
|
||||
struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
|
||||
pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (!param || !param->parameter) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "param is NULL in oci_bind_input_cb; this should not happen");
|
||||
|
@ -220,7 +219,6 @@ static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, d
|
|||
{
|
||||
struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
|
||||
pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (!param || !param->parameter) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "param is NULL in oci_bind_output_cb; this should not happen");
|
||||
|
@ -481,7 +479,6 @@ static sb4 oci_define_callback(dvoid *octxp, OCIDefine *define, ub4 iter, dvoid
|
|||
ub4 **alenpp, ub1 *piecep, dvoid **indpp, ub2 **rcodepp)
|
||||
{
|
||||
pdo_oci_column *col = (pdo_oci_column*)octxp;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
switch (col->dtype) {
|
||||
case SQLT_BLOB:
|
||||
|
|
|
@ -448,7 +448,6 @@ 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);
|
||||
}
|
||||
|
@ -457,7 +456,6 @@ 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);
|
||||
}
|
||||
|
@ -465,7 +463,6 @@ 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);
|
||||
}
|
||||
|
@ -478,7 +475,6 @@ 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);
|
||||
|
@ -763,7 +759,6 @@ 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;
|
||||
|
@ -773,7 +768,6 @@ 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