S 643 Zend/zend_alloc.c #define ZEND_MM_LARGE_BUCKET_INDEX(S) zend_mm_high_bit(S) S 1276 Zend/zend_strtod.c static int quorem(Bigint *b, Bigint *S) S 1287 Zend/zend_strtod.c n = S->wds; S 1294 Zend/zend_strtod.c sx = S->x; S 1336 Zend/zend_strtod.c if (cmp(b, S) >= 0) { S 1341 Zend/zend_strtod.c sx = S->x; S 1480 Zend/zend_strtod.c Bigint *b, *b1, *delta, *mlo, *mhi, *S, *tmp; S 1683 Zend/zend_strtod.c S = mhi = 0; S 1753 Zend/zend_strtod.c S = mhi = 0; S 1843 Zend/zend_strtod.c S = i2b(1); S 1845 Zend/zend_strtod.c S = pow5mult(S, s5); S 1871 Zend/zend_strtod.c if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0x1f)) S 1874 Zend/zend_strtod.c if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0xf)) S 1892 Zend/zend_strtod.c S = lshift(S, s2); S 1894 Zend/zend_strtod.c if (cmp(b,S) < 0) { S 1903 Zend/zend_strtod.c if (ilim < 0 || cmp(b,S = multadd(S,5,0)) <= 0) { S 1930 Zend/zend_strtod.c dig = quorem(b,S) + '0'; S 1935 Zend/zend_strtod.c delta = diff(S, mhi); S 1955 Zend/zend_strtod.c j1 = cmp(b, S); S 1986 Zend/zend_strtod.c *s++ = dig = quorem(b,S) + '0'; S 1995 Zend/zend_strtod.c j = cmp(b, S); S 2011 Zend/zend_strtod.c Bfree(S); S 201 ext/hash/hash_gost.c S(s, l, r); \ S 164 ext/hash/hash_ripemd.c static const unsigned char S[80] = { S 178 ext/hash/hash_ripemd.c #define ROLS(j, x) (((x) << S[j]) | ((x) >> (32 - S[j]))) S 39 ext/pdo_dblib/dblib_driver.c pdo_dblib_stmt *S = NULL; S 44 ext/pdo_dblib/dblib_driver.c S = (pdo_dblib_stmt*)stmt->driver_data; S 45 ext/pdo_dblib/dblib_driver.c einfo = &S->err; S 94 ext/pdo_dblib/dblib_driver.c pdo_dblib_stmt *S = ecalloc(1, sizeof(*S)); S 96 ext/pdo_dblib/dblib_driver.c S->H = H; S 97 ext/pdo_dblib/dblib_driver.c stmt->driver_data = S; S 100 ext/pdo_dblib/dblib_driver.c S->err.sqlstate = stmt->error_code; S 35 ext/pdo_dblib/dblib_stmt.c static void free_rows(pdo_dblib_stmt *S TSRMLS_DC) S 39 ext/pdo_dblib/dblib_stmt.c for (i = 0; i < S->nrows; i++) { S 40 ext/pdo_dblib/dblib_stmt.c for (j = 0; j < S->ncols; j++) { S 41 ext/pdo_dblib/dblib_stmt.c pdo_dblib_colval *val = &S->rows[i] + j; S 48 ext/pdo_dblib/dblib_stmt.c efree(S->rows); S 49 ext/pdo_dblib/dblib_stmt.c S->rows = NULL; S 50 ext/pdo_dblib/dblib_stmt.c S->nrows = 0; S 55 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 57 ext/pdo_dblib/dblib_stmt.c if (S->rows) { S 58 ext/pdo_dblib/dblib_stmt.c free_rows(S TSRMLS_CC); S 60 ext/pdo_dblib/dblib_stmt.c if (S->cols) { S 61 ext/pdo_dblib/dblib_stmt.c efree(S->cols); S 63 ext/pdo_dblib/dblib_stmt.c efree(S); S 71 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 72 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 78 ext/pdo_dblib/dblib_stmt.c dbsetuserdata(H->link, &S->err); S 80 ext/pdo_dblib/dblib_stmt.c if (S->rows) { S 82 ext/pdo_dblib/dblib_stmt.c free_rows(S TSRMLS_CC); S 105 ext/pdo_dblib/dblib_stmt.c if (!S->cols) { S 106 ext/pdo_dblib/dblib_stmt.c S->ncols = dbnumcols(H->link); S 108 ext/pdo_dblib/dblib_stmt.c if (S->ncols <= 0) { S 112 ext/pdo_dblib/dblib_stmt.c S->cols = ecalloc(S->ncols, sizeof(pdo_dblib_col)); S 113 ext/pdo_dblib/dblib_stmt.c stmt->column_count = S->ncols; S 115 ext/pdo_dblib/dblib_stmt.c for (i = 0, j = 0; i < S->ncols; i++) { S 116 ext/pdo_dblib/dblib_stmt.c S->cols[i].coltype = dbcoltype(H->link, i+1); S 117 ext/pdo_dblib/dblib_stmt.c S->cols[i].name = dbcolname(H->link, i+1); S 118 ext/pdo_dblib/dblib_stmt.c if (S->cols[i].name) { S 119 ext/pdo_dblib/dblib_stmt.c S->cols[i].name = estrdup(S->cols[i].name); S 121 ext/pdo_dblib/dblib_stmt.c spprintf(&S->cols[i].name, 0, "computed%d", j++); S 123 ext/pdo_dblib/dblib_stmt.c S->cols[i].name = estrdup("computed"); S 126 ext/pdo_dblib/dblib_stmt.c S->cols[i].source = dbcolsource(H->link, i+1); S 127 ext/pdo_dblib/dblib_stmt.c S->cols[i].source = estrdup(S->cols[i].source ? S->cols[i].source : ""); S 128 ext/pdo_dblib/dblib_stmt.c S->cols[i].maxlen = dbcollen(H->link, i+1); S 133 ext/pdo_dblib/dblib_stmt.c size = S->ncols * sizeof(pdo_dblib_colval); S 134 ext/pdo_dblib/dblib_stmt.c S->rows = safe_emalloc(arows, size, 0); S 138 ext/pdo_dblib/dblib_stmt.c if (S->nrows >= arows) { S 140 ext/pdo_dblib/dblib_stmt.c S->rows = erealloc(S->rows, arows * size); S 142 ext/pdo_dblib/dblib_stmt.c for (i = 0; i < S->ncols; i++) { S 143 ext/pdo_dblib/dblib_stmt.c pdo_dblib_colval *val = &S->rows[S->nrows * S->ncols + i]; S 149 ext/pdo_dblib/dblib_stmt.c switch (S->cols[i].coltype) { S 162 ext/pdo_dblib/dblib_stmt.c if (dbwillconvert(S->cols[i].coltype, SQLCHAR)) { S 166 ext/pdo_dblib/dblib_stmt.c val->len = dbconvert(NULL, S->cols[i].coltype, dbdata(H->link, i+1), S 180 ext/pdo_dblib/dblib_stmt.c S->nrows++; S 198 ext/pdo_dblib/dblib_stmt.c S->current = -1; S 206 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 208 ext/pdo_dblib/dblib_stmt.c if (!S->rows) { S 212 ext/pdo_dblib/dblib_stmt.c if (++S->current < S->nrows) { S 221 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 224 ext/pdo_dblib/dblib_stmt.c if (!S->rows) { S 228 ext/pdo_dblib/dblib_stmt.c col->maxlen = S->cols[colno].maxlen; S 229 ext/pdo_dblib/dblib_stmt.c col->namelen = strlen(S->cols[colno].name); S 230 ext/pdo_dblib/dblib_stmt.c col->name = estrdup(S->cols[colno].name); S 239 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 240 ext/pdo_dblib/dblib_stmt.c pdo_dblib_colval *val = &S->rows[S->current * S->ncols + colno]; S 255 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 257 ext/pdo_dblib/dblib_stmt.c if (S->rows) { S 258 ext/pdo_dblib/dblib_stmt.c free_rows(S TSRMLS_CC); S 259 ext/pdo_dblib/dblib_stmt.c S->rows = NULL; S 128 ext/pdo_firebird/firebird_driver.c pdo_firebird_stmt *S = NULL; S 149 ext/pdo_firebird/firebird_driver.c S = ecalloc(1, sizeof(*S)-sizeof(XSQLDA) + XSQLDA_LENGTH(num_sqlda.sqld)); S 150 ext/pdo_firebird/firebird_driver.c S->H = H; S 151 ext/pdo_firebird/firebird_driver.c S->stmt = s; S 152 ext/pdo_firebird/firebird_driver.c S->fetch_buf = ecalloc(1,sizeof(char*) * num_sqlda.sqld); S 153 ext/pdo_firebird/firebird_driver.c S->out_sqlda.version = PDO_FB_SQLDA_VERSION; S 154 ext/pdo_firebird/firebird_driver.c S->out_sqlda.sqln = stmt->column_count = num_sqlda.sqld; S 155 ext/pdo_firebird/firebird_driver.c S->named_params = np; S 162 ext/pdo_firebird/firebird_driver.c S->statement_type = result[3]; S 165 ext/pdo_firebird/firebird_driver.c if (isc_dsql_describe(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { S 176 ext/pdo_firebird/firebird_driver.c S->in_sqlda = ecalloc(1,XSQLDA_LENGTH(num_sqlda.sqld)); S 177 ext/pdo_firebird/firebird_driver.c S->in_sqlda->version = PDO_FB_SQLDA_VERSION; S 178 ext/pdo_firebird/firebird_driver.c S->in_sqlda->sqln = num_sqlda.sqld; S 180 ext/pdo_firebird/firebird_driver.c if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { S 185 ext/pdo_firebird/firebird_driver.c stmt->driver_data = S; S 198 ext/pdo_firebird/firebird_driver.c if (S) { S 199 ext/pdo_firebird/firebird_driver.c if (S->in_sqlda) { S 200 ext/pdo_firebird/firebird_driver.c efree(S->in_sqlda); S 202 ext/pdo_firebird/firebird_driver.c efree(S); S 55 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 59 ext/pdo_firebird/firebird_statement.c if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) { S 65 ext/pdo_firebird/firebird_statement.c for (i = 0; i < S->out_sqlda.sqld; ++i) { S 66 ext/pdo_firebird/firebird_statement.c if (S->fetch_buf[i]) { S 67 ext/pdo_firebird/firebird_statement.c efree(S->fetch_buf[i]); S 70 ext/pdo_firebird/firebird_statement.c efree(S->fetch_buf); S 72 ext/pdo_firebird/firebird_statement.c zend_hash_destroy(S->named_params); S 73 ext/pdo_firebird/firebird_statement.c FREE_HASHTABLE(S->named_params); S 76 ext/pdo_firebird/firebird_statement.c if (S->in_sqlda) { S 77 ext/pdo_firebird/firebird_statement.c free_sqlda(S->in_sqlda); S 78 ext/pdo_firebird/firebird_statement.c efree(S->in_sqlda); S 81 ext/pdo_firebird/firebird_statement.c free_sqlda(&S->out_sqlda); S 82 ext/pdo_firebird/firebird_statement.c efree(S); S 91 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 92 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 96 ext/pdo_firebird/firebird_statement.c if (*S->name && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { S 102 ext/pdo_firebird/firebird_statement.c if ((S->statement_type == isc_info_sql_stmt_exec_procedure && S 103 ext/pdo_firebird/firebird_statement.c isc_dsql_execute2(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S 104 ext/pdo_firebird/firebird_statement.c S->in_sqlda, &S->out_sqlda)) S 105 ext/pdo_firebird/firebird_statement.c || isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S 106 ext/pdo_firebird/firebird_statement.c S->in_sqlda)) { S 115 ext/pdo_firebird/firebird_statement.c *S->name = 0; S 116 ext/pdo_firebird/firebird_statement.c S->exhausted = 0; S 131 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 132 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 137 ext/pdo_firebird/firebird_statement.c } else if (!S->exhausted) { S 141 ext/pdo_firebird/firebird_statement.c if (S->statement_type == isc_info_sql_stmt_exec_procedure) { S 142 ext/pdo_firebird/firebird_statement.c S->exhausted = 1; S 144 ext/pdo_firebird/firebird_statement.c if (isc_dsql_fetch(H->isc_status, &S->stmt, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { S 148 ext/pdo_firebird/firebird_statement.c S->exhausted = 1; S 161 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 163 ext/pdo_firebird/firebird_statement.c XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; S 220 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 221 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 266 ext/pdo_firebird/firebird_statement.c *ptr = S->fetch_buf[colno] = erealloc(*ptr, *len+1); S 297 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 298 ext/pdo_firebird/firebird_statement.c XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; S 327 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 358 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 362 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 366 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 370 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 374 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 380 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], long, 0, *len); S 385 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], long, 0, *len); S 396 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 401 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], double, 0, *len); S 423 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len = 80, NULL); S 438 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 439 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 478 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 479 ext/pdo_firebird/firebird_statement.c XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; S 488 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Invalid parameter index"; S 495 ext/pdo_firebird/firebird_statement.c if (SUCCESS == zend_hash_find(S->named_params, param->name, param->namelen+1, (void*)&index)) { S 514 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Invalid parameter name"; S 545 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Cannot bind to array field"; S 592 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Parameter requires non-null value"; S 599 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Binding arrays/objects is not supported"; S 646 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 654 ext/pdo_firebird/firebird_statement.c if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, Z_STRVAL_P(val),0)) { S 658 ext/pdo_firebird/firebird_statement.c strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); S 667 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 673 ext/pdo_firebird/firebird_statement.c if (*S->name) { S 674 ext/pdo_firebird/firebird_statement.c ZVAL_STRING(val,S->name,1); S 50 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = NULL; S 53 ext/pdo_mysql/mysql_driver.c S = (pdo_mysql_stmt*)stmt->driver_data; S 55 ext/pdo_mysql/mysql_driver.c einfo = &S->einfo; S 62 ext/pdo_mysql/mysql_driver.c if (S && S->stmt) { S 63 ext/pdo_mysql/mysql_driver.c einfo->errcode = mysql_stmt_errno(S->stmt); S 97 ext/pdo_mysql/mysql_driver.c if (S && S->stmt) { S 98 ext/pdo_mysql/mysql_driver.c strcpy(*pdo_err, mysql_stmt_sqlstate(S->stmt)); S 124 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 125 ext/pdo_mysql/mysql_driver.c einfo = &S->einfo; S 161 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = ecalloc(1, sizeof(pdo_mysql_stmt)); S 169 ext/pdo_mysql/mysql_driver.c S->H = H; S 170 ext/pdo_mysql/mysql_driver.c stmt->driver_data = S; S 195 ext/pdo_mysql/mysql_driver.c if (!(S->stmt = mysql_stmt_init(H->server))) { S 203 ext/pdo_mysql/mysql_driver.c if (mysql_stmt_prepare(S->stmt, sql, sql_len)) { S 222 ext/pdo_mysql/mysql_driver.c S->num_params = mysql_stmt_param_count(S->stmt); S 224 ext/pdo_mysql/mysql_driver.c if (S->num_params) { S 225 ext/pdo_mysql/mysql_driver.c S->params = ecalloc(S->num_params, sizeof(MYSQL_BIND)); S 226 ext/pdo_mysql/mysql_driver.c S->in_null = ecalloc(S->num_params, sizeof(my_bool)); S 227 ext/pdo_mysql/mysql_driver.c S->in_length = ecalloc(S->num_params, sizeof(unsigned long)); S 232 ext/pdo_mysql/mysql_driver.c S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0 TSRMLS_CC); S 37 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 39 ext/pdo_mysql/mysql_statement.c if (S->result) { S 41 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 42 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 44 ext/pdo_mysql/mysql_statement.c if (S->einfo.errmsg) { S 45 ext/pdo_mysql/mysql_statement.c pefree(S->einfo.errmsg, stmt->dbh->is_persistent); S 46 ext/pdo_mysql/mysql_statement.c S->einfo.errmsg = NULL; S 49 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 50 ext/pdo_mysql/mysql_statement.c mysql_stmt_close(S->stmt); S 51 ext/pdo_mysql/mysql_statement.c S->stmt = NULL; S 53 ext/pdo_mysql/mysql_statement.c if (S->params) { S 54 ext/pdo_mysql/mysql_statement.c efree(S->params); S 55 ext/pdo_mysql/mysql_statement.c efree(S->in_null); S 56 ext/pdo_mysql/mysql_statement.c efree(S->in_length); S 58 ext/pdo_mysql/mysql_statement.c if (S->bound_result) S 62 ext/pdo_mysql/mysql_statement.c efree(S->bound_result[i].buffer); S 65 ext/pdo_mysql/mysql_statement.c efree(S->bound_result); S 66 ext/pdo_mysql/mysql_statement.c efree(S->out_null); S 67 ext/pdo_mysql/mysql_statement.c efree(S->out_length); S 71 ext/pdo_mysql/mysql_statement.c if (S->H->server) { S 72 ext/pdo_mysql/mysql_statement.c while (mysql_more_results(S->H->server)) { S 74 ext/pdo_mysql/mysql_statement.c if (mysql_next_result(S->H->server) != 0) { S 78 ext/pdo_mysql/mysql_statement.c res = mysql_store_result(S->H->server); S 85 ext/pdo_mysql/mysql_statement.c efree(S); S 91 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 92 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 97 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 99 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_bind_param(S->stmt, S->params)) { S 104 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_execute(S->stmt)) { S 109 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 111 ext/pdo_mysql/mysql_statement.c S->result = mysql_stmt_result_metadata(S->stmt); S 112 ext/pdo_mysql/mysql_statement.c if (S->result) { S 113 ext/pdo_mysql/mysql_statement.c int calc_max_length = H->buffered && S->max_length == 1; S 115 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 117 ext/pdo_mysql/mysql_statement.c if (S->bound_result) { S 120 ext/pdo_mysql/mysql_statement.c efree(S->bound_result[i].buffer); S 122 ext/pdo_mysql/mysql_statement.c efree(S->bound_result); S 123 ext/pdo_mysql/mysql_statement.c efree(S->out_null); S 124 ext/pdo_mysql/mysql_statement.c efree(S->out_length); S 127 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int)mysql_num_fields(S->result); S 128 ext/pdo_mysql/mysql_statement.c S->bound_result = ecalloc(stmt->column_count, sizeof(MYSQL_BIND)); S 129 ext/pdo_mysql/mysql_statement.c S->out_null = ecalloc(stmt->column_count, sizeof(my_bool)); S 130 ext/pdo_mysql/mysql_statement.c S->out_length = ecalloc(stmt->column_count, sizeof(unsigned long)); S 134 ext/pdo_mysql/mysql_statement.c if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) { S 136 ext/pdo_mysql/mysql_statement.c mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on); S 139 ext/pdo_mysql/mysql_statement.c switch (S->fields[i].type) { S 141 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH; S 144 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_INT_WIDTH; S 147 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH; S 150 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH; S 153 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH; S 156 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = S 157 ext/pdo_mysql/mysql_statement.c S->fields[i].max_length? S->fields[i].max_length: S 158 ext/pdo_mysql/mysql_statement.c S->fields[i].length; S 160 ext/pdo_mysql/mysql_statement.c if (S->bound_result[i].buffer_length > H->max_buffer_size) { S 161 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = H->max_buffer_size; S 167 ext/pdo_mysql/mysql_statement.c S->fields[i].max_length, S 168 ext/pdo_mysql/mysql_statement.c S->fields[i].length, S 169 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length, S 170 ext/pdo_mysql/mysql_statement.c S->fields[i].type S 178 ext/pdo_mysql/mysql_statement.c if (S->fields[i].max_length == 0 && S->bound_result[i].buffer_length < 128 && MYSQL_TYPE_VAR_STRING) { S 179 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = 128; S 182 ext/pdo_mysql/mysql_statement.c S->out_length[i] = 0; S 184 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); S 185 ext/pdo_mysql/mysql_statement.c S->bound_result[i].is_null = &S->out_null[i]; S 186 ext/pdo_mysql/mysql_statement.c S->bound_result[i].length = &S->out_length[i]; S 187 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; S 190 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_bind_result(S->stmt, S->bound_result)) { S 197 ext/pdo_mysql/mysql_statement.c mysql_stmt_store_result(S->stmt); S 202 ext/pdo_mysql/mysql_statement.c row_count = mysql_stmt_affected_rows(S->stmt); S 210 ext/pdo_mysql/mysql_statement.c if (S->result) { S 211 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 212 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 225 ext/pdo_mysql/mysql_statement.c S->result = mysql_use_result(H->server); S 227 ext/pdo_mysql/mysql_statement.c S->result = mysql_store_result(H->server); S 229 ext/pdo_mysql/mysql_statement.c if (NULL == S->result) { S 234 ext/pdo_mysql/mysql_statement.c stmt->row_count = mysql_num_rows(S->result); S 237 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int) mysql_num_fields(S->result); S 238 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 251 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 252 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 258 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 259 ext/pdo_mysql/mysql_statement.c mysql_stmt_free_result(S->stmt); S 262 ext/pdo_mysql/mysql_statement.c if (S->result) { S 263 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 264 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 277 ext/pdo_mysql/mysql_statement.c S->result = mysql_use_result(H->server); S 280 ext/pdo_mysql/mysql_statement.c S->result = mysql_store_result(H->server); S 287 ext/pdo_mysql/mysql_statement.c if (NULL == S->result) { S 292 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int) mysql_num_fields(S->result); S 293 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 307 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 310 ext/pdo_mysql/mysql_statement.c if (S->stmt && param->is_param) { S 314 ext/pdo_mysql/mysql_statement.c if (param->paramno < 0 || param->paramno >= S->num_params) { S 318 ext/pdo_mysql/mysql_statement.c b = &S->params[param->paramno]; S 320 ext/pdo_mysql/mysql_statement.c b->is_null = &S->in_null[param->paramno]; S 321 ext/pdo_mysql/mysql_statement.c b->length = &S->in_length[param->paramno]; S 391 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 395 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 396 ext/pdo_mysql/mysql_statement.c ret = mysql_stmt_fetch(S->stmt); S 415 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 419 ext/pdo_mysql/mysql_statement.c if ((S->current_data = mysql_fetch_row(S->result)) == NULL) { S 420 ext/pdo_mysql/mysql_statement.c if (mysql_errno(S->H->server)) { S 425 ext/pdo_mysql/mysql_statement.c S->current_lengths = mysql_fetch_lengths(S->result); S 431 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 435 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 452 ext/pdo_mysql/mysql_statement.c namelen = strlen(S->fields[i].name); S 453 ext/pdo_mysql/mysql_statement.c cols[i].precision = S->fields[i].decimals; S 454 ext/pdo_mysql/mysql_statement.c cols[i].maxlen = S->fields[i].length; S 456 ext/pdo_mysql/mysql_statement.c cols[i].name = estrndup(S->fields[i].name, namelen); S 464 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 467 ext/pdo_mysql/mysql_statement.c if (!S->stmt) { S 469 ext/pdo_mysql/mysql_statement.c if (S->current_data == NULL || !S->result) { S 480 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 481 ext/pdo_mysql/mysql_statement.c if (S->out_null[colno]) { S 486 ext/pdo_mysql/mysql_statement.c *ptr = S->bound_result[colno].buffer; S 487 ext/pdo_mysql/mysql_statement.c if (S->out_length[colno] > S->bound_result[colno].buffer_length) { S 490 ext/pdo_mysql/mysql_statement.c S->out_length[colno] = S->bound_result[colno].buffer_length; S 491 ext/pdo_mysql/mysql_statement.c *len = S->out_length[colno]; S 494 ext/pdo_mysql/mysql_statement.c *len = S->out_length[colno]; S 498 ext/pdo_mysql/mysql_statement.c *ptr = S->current_data[colno]; S 499 ext/pdo_mysql/mysql_statement.c *len = S->current_lengths[colno]; S 550 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 555 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 567 ext/pdo_mysql/mysql_statement.c F = S->fields + colno; S 599 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 601 ext/pdo_mysql/mysql_statement.c if (S->result) { S 602 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 603 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 606 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 608 ext/pdo_mysql/mysql_statement.c if (!S->H->buffered) { S 609 ext/pdo_mysql/mysql_statement.c retval = mysql_stmt_close(S->stmt); S 610 ext/pdo_mysql/mysql_statement.c S->stmt = NULL; S 612 ext/pdo_mysql/mysql_statement.c retval = mysql_stmt_free_result(S->stmt); S 619 ext/pdo_mysql/mysql_statement.c while (mysql_more_results(S->H->server)) { S 621 ext/pdo_mysql/mysql_statement.c if (mysql_next_result(S->H->server) != 0) { S 624 ext/pdo_mysql/mysql_statement.c res = mysql_store_result(S->H->server); S 44 ext/pdo_oci/oci_driver.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 46 ext/pdo_oci/oci_driver.c if (S->einfo.errmsg) { S 47 ext/pdo_oci/oci_driver.c einfo = &S->einfo; S 66 ext/pdo_oci/oci_driver.c pdo_oci_stmt *S = NULL; S 70 ext/pdo_oci/oci_driver.c S = (pdo_oci_stmt*)stmt->driver_data; S 71 ext/pdo_oci/oci_driver.c einfo = &S->einfo; S 239 ext/pdo_oci/oci_driver.c pdo_oci_stmt *S = ecalloc(1, sizeof(*S)); S 246 ext/pdo_oci/oci_driver.c S->exec_type = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, S 250 ext/pdo_oci/oci_driver.c S->exec_type = OCI_DEFAULT; S 253 ext/pdo_oci/oci_driver.c S->H = H; S 264 ext/pdo_oci/oci_driver.c efree(S); S 269 ext/pdo_oci/oci_driver.c OCIHandleAlloc(H->env, (dvoid*)&S->stmt, OCI_HTYPE_STMT, 0, NULL); S 272 ext/pdo_oci/oci_driver.c OCIHandleAlloc(H->env, (dvoid*)&S->err, OCI_HTYPE_ERROR, 0, NULL); S 275 ext/pdo_oci/oci_driver.c H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); S 282 ext/pdo_oci/oci_driver.c OCIHandleFree(S->stmt, OCI_HTYPE_STMT); S 283 ext/pdo_oci/oci_driver.c OCIHandleFree(S->err, OCI_HTYPE_ERROR); S 284 ext/pdo_oci/oci_driver.c efree(S); S 292 ext/pdo_oci/oci_driver.c H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, S 296 ext/pdo_oci/oci_driver.c H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, S 301 ext/pdo_oci/oci_driver.c stmt->driver_data = S; S 36 ext/pdo_oci/oci_statement.c S->last_err = name params; \ S 37 ext/pdo_oci/oci_statement.c S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \ S 38 ext/pdo_oci/oci_statement.c if (S->last_err) { \ S 45 ext/pdo_oci/oci_statement.c S->last_err = name params; \ S 46 ext/pdo_oci/oci_statement.c S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name ": " #msg, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \ S 47 ext/pdo_oci/oci_statement.c if (S->last_err) { \ S 56 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 62 ext/pdo_oci/oci_statement.c if (S->stmt) { S 65 ext/pdo_oci/oci_statement.c OCIStmtFetch(S->stmt, S->err, 0, OCI_FETCH_NEXT, OCI_DEFAULT); S 68 ext/pdo_oci/oci_statement.c OCIHandleFree(S->stmt, OCI_HTYPE_STMT); S 69 ext/pdo_oci/oci_statement.c S->stmt = NULL; S 71 ext/pdo_oci/oci_statement.c if (S->err) { S 72 ext/pdo_oci/oci_statement.c OCIHandleFree(S->err, OCI_HTYPE_ERROR); S 73 ext/pdo_oci/oci_statement.c S->err = NULL; S 89 ext/pdo_oci/oci_statement.c if (S->einfo.errmsg) { S 90 ext/pdo_oci/oci_statement.c efree(S->einfo.errmsg); S 91 ext/pdo_oci/oci_statement.c S->einfo.errmsg = NULL; S 94 ext/pdo_oci/oci_statement.c if (S->cols) { S 96 ext/pdo_oci/oci_statement.c if (S->cols[i].data) { S 97 ext/pdo_oci/oci_statement.c switch (S->cols[i].dtype) { S 103 ext/pdo_oci/oci_statement.c efree(S->cols[i].data); S 107 ext/pdo_oci/oci_statement.c efree(S->cols); S 108 ext/pdo_oci/oci_statement.c S->cols = NULL; S 110 ext/pdo_oci/oci_statement.c efree(S); S 119 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 123 ext/pdo_oci/oci_statement.c if (!S->stmt_type) { S 125 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &S->stmt_type, 0, OCI_ATTR_STMT_TYPE, S->err)); S 130 ext/pdo_oci/oci_statement.c OCIStmtFetch(S->stmt, S->err, 0, OCI_FETCH_NEXT, OCI_DEFAULT); S 134 ext/pdo_oci/oci_statement.c if (S->exec_type == OCI_STMT_SCROLLABLE_READONLY) { S 144 ext/pdo_oci/oci_statement.c STMT_CALL(OCIStmtExecute, (S->H->svc, S->stmt, S->err, S 145 ext/pdo_oci/oci_statement.c (S->stmt_type == OCI_STMT_SELECT && !S->have_blobs) ? 0 : 1, 0, NULL, NULL, S 154 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &colcount, 0, OCI_ATTR_PARAM_COUNT, S->err)); S 158 ext/pdo_oci/oci_statement.c if (S->cols) { S 161 ext/pdo_oci/oci_statement.c if (S->cols[i].data) { S 162 ext/pdo_oci/oci_statement.c switch (S->cols[i].dtype) { S 168 ext/pdo_oci/oci_statement.c efree(S->cols[i].data); S 172 ext/pdo_oci/oci_statement.c efree(S->cols); S 175 ext/pdo_oci/oci_statement.c S->cols = ecalloc(colcount, sizeof(pdo_oci_column)); S 179 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, S->err)); S 261 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 304 ext/pdo_oci/oci_statement.c STMT_CALL(OCIBindByName, (S->stmt, S 305 ext/pdo_oci/oci_statement.c &P->bind, S->err, (text*)param->name, S 310 ext/pdo_oci/oci_statement.c STMT_CALL(OCIBindByPos, (S->stmt, S 311 ext/pdo_oci/oci_statement.c &P->bind, S->err, param->paramno+1, S 318 ext/pdo_oci/oci_statement.c S->err, S 329 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDescriptorAlloc, (S->H->env, &P->thing, OCI_DTYPE_LOB, 0, NULL)); S 330 ext/pdo_oci/oci_statement.c STMT_CALL(OCIAttrSet, (P->thing, OCI_DTYPE_LOB, &empty, 0, OCI_ATTR_LOBEMPTY, S->err)); S 331 ext/pdo_oci/oci_statement.c S->have_blobs = 1; S 369 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 381 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 391 ext/pdo_oci/oci_statement.c OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, S 400 ext/pdo_oci/oci_statement.c OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); S 401 ext/pdo_oci/oci_statement.c OCILobFlushBuffer(S->H->svc, S->err, (OCILobLocator*)P->thing, 0); S 407 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 410 ext/pdo_oci/oci_statement.c OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, S 417 ext/pdo_oci/oci_statement.c OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); S 437 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 448 ext/pdo_oci/oci_statement.c S->last_err = OCIStmtFetch2(S->stmt, S->err, 1, ociori, offset, OCI_DEFAULT); S 450 ext/pdo_oci/oci_statement.c S->last_err = OCIStmtFetch(S->stmt, S->err, 1, OCI_FETCH_NEXT, OCI_DEFAULT); S 453 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_NO_DATA) { S 458 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_NEED_DATA) { S 463 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_SUCCESS_WITH_INFO || S->last_err == OCI_SUCCESS) { S 498 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 507 ext/pdo_oci/oci_statement.c STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)¶m, colno+1)); S 511 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, S->err)); S 515 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &data_size, 0, OCI_ATTR_DATA_SIZE, S->err)); S 519 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); S 523 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &precis, 0, OCI_ATTR_PRECISION, S->err)); S 527 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &colname, &namelen, OCI_ATTR_NAME, S->err)); S 534 ext/pdo_oci/oci_statement.c S->cols[colno].dtype = dtype; S 545 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */ S 546 ext/pdo_oci/oci_statement.c S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); S 553 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL)); S 554 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = sizeof(OCILobLocator*); S 569 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 512; S 572 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 1024; S 575 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = col->maxlen; S 578 ext/pdo_oci/oci_statement.c S->cols[colno].datalen *= 3; S 580 ext/pdo_oci/oci_statement.c S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); S 587 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, S 588 ext/pdo_oci/oci_statement.c S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, S 589 ext/pdo_oci/oci_statement.c &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); S 592 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], S 601 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S; S 613 ext/pdo_oci/oci_statement.c r = OCILobWrite(self->S->H->svc, self->S->err, self->lob, S 633 ext/pdo_oci/oci_statement.c r = OCILobRead(self->S->H->svc, self->S->err, self->lob, S 651 ext/pdo_oci/oci_statement.c OCILobClose(self->S->H->svc, self->S->err, self->lob); S 663 ext/pdo_oci/oci_statement.c OCILobFlushBuffer(self->S->H->svc, self->S->err, self->lob, 0); S 695 ext/pdo_oci/oci_statement.c self->S = (pdo_oci_stmt*)stmt->driver_data; S 710 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 711 ext/pdo_oci/oci_statement.c pdo_oci_column *C = &S->cols[colno]; S 725 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)C->data, OCI_LOB_READONLY); S 92 ext/pdo_oci/php_pdo_oci_int.h #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC) S 38 ext/pdo_odbc/odbc_driver.c pdo_odbc_stmt *S = NULL; S 42 ext/pdo_odbc/odbc_driver.c S = (pdo_odbc_stmt*)stmt->driver_data; S 43 ext/pdo_odbc/odbc_driver.c einfo = &S->einfo; S 67 ext/pdo_odbc/odbc_driver.c pdo_odbc_stmt *S = NULL; S 71 ext/pdo_odbc/odbc_driver.c S = (pdo_odbc_stmt*)stmt->driver_data; S 73 ext/pdo_odbc/odbc_driver.c einfo = &S->einfo; S 77 ext/pdo_odbc/odbc_driver.c if (statement == SQL_NULL_HSTMT && S) { S 78 ext/pdo_odbc/odbc_driver.c statement = S->stmt; S 149 ext/pdo_odbc/odbc_driver.c pdo_odbc_stmt *S = ecalloc(1, sizeof(*S)); S 155 ext/pdo_odbc/odbc_driver.c S->H = H; S 168 ext/pdo_odbc/odbc_driver.c efree(S); S 172 ext/pdo_odbc/odbc_driver.c rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); S 175 ext/pdo_odbc/odbc_driver.c efree(S); S 185 ext/pdo_odbc/odbc_driver.c rc = SQLSetStmtAttr(S->stmt, SQL_ATTR_CURSOR_SCROLLABLE, (void*)SQL_SCROLLABLE, 0); S 188 ext/pdo_odbc/odbc_driver.c SQLFreeHandle(SQL_HANDLE_STMT, S->stmt); S 196 ext/pdo_odbc/odbc_driver.c rc = SQLPrepare(S->stmt, (char*)sql, SQL_NTS); S 201 ext/pdo_odbc/odbc_driver.c stmt->driver_data = S; S 208 ext/pdo_odbc/odbc_driver.c strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); S 209 ext/pdo_odbc/odbc_driver.c H->einfo.file = S->einfo.file; S 210 ext/pdo_odbc/odbc_driver.c H->einfo.line = S->einfo.line; S 211 ext/pdo_odbc/odbc_driver.c H->einfo.what = S->einfo.what; S 33 ext/pdo_odbc/odbc_stmt.c static void free_cols(pdo_stmt_t *stmt, pdo_odbc_stmt *S TSRMLS_DC) S 35 ext/pdo_odbc/odbc_stmt.c if (S->cols) { S 39 ext/pdo_odbc/odbc_stmt.c if (S->cols[i].data) { S 40 ext/pdo_odbc/odbc_stmt.c efree(S->cols[i].data); S 43 ext/pdo_odbc/odbc_stmt.c efree(S->cols); S 44 ext/pdo_odbc/odbc_stmt.c S->cols = NULL; S 50 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 52 ext/pdo_odbc/odbc_stmt.c if (S->stmt != SQL_NULL_HANDLE) { S 54 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 56 ext/pdo_odbc/odbc_stmt.c SQLFreeHandle(SQL_HANDLE_STMT, S->stmt); S 57 ext/pdo_odbc/odbc_stmt.c S->stmt = SQL_NULL_HANDLE; S 60 ext/pdo_odbc/odbc_stmt.c free_cols(stmt, S TSRMLS_CC); S 62 ext/pdo_odbc/odbc_stmt.c efree(S); S 70 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 75 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 78 ext/pdo_odbc/odbc_stmt.c rc = SQLExecute(S->stmt); S 82 ext/pdo_odbc/odbc_stmt.c rc = SQLParamData(S->stmt, (SQLPOINTER*)¶m); S 90 ext/pdo_odbc/odbc_stmt.c SQLPutData(S->stmt, Z_STRVAL_P(param->parameter), Z_STRLEN_P(param->parameter)); S 98 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 115 ext/pdo_odbc/odbc_stmt.c SQLPutData(S->stmt, buf, len); S 137 ext/pdo_odbc/odbc_stmt.c SQLRowCount(S->stmt, &row_count); S 145 ext/pdo_odbc/odbc_stmt.c SQLNumResultCols(S->stmt, &colcount); S 148 ext/pdo_odbc/odbc_stmt.c S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); S 149 ext/pdo_odbc/odbc_stmt.c S->going_long = 0; S 158 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 189 ext/pdo_odbc/odbc_stmt.c rc = SQLDescribeParam(S->stmt, param->paramno+1, &sqltype, &precision, &scale, &nullable); S 237 ext/pdo_odbc/odbc_stmt.c rc = SQLBindParameter(S->stmt, param->paramno+1, S 345 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 360 ext/pdo_odbc/odbc_stmt.c rc = SQLFetchScroll(S->stmt, odbcori, offset); S 382 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 389 ext/pdo_odbc/odbc_stmt.c rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, S 390 ext/pdo_odbc/odbc_stmt.c sizeof(S->cols[colno].colname)-1, &colnamelen, S 391 ext/pdo_odbc/odbc_stmt.c &S->cols[colno].coltype, &colsize, NULL, NULL); S 400 ext/pdo_odbc/odbc_stmt.c rc = SQLColAttribute(S->stmt, colno+1, S 412 ext/pdo_odbc/odbc_stmt.c col->maxlen = S->cols[colno].datalen = colsize; S 414 ext/pdo_odbc/odbc_stmt.c col->name = estrdup(S->cols[colno].colname); S 422 ext/pdo_odbc/odbc_stmt.c if (colsize < 256 && !S->going_long) { S 423 ext/pdo_odbc/odbc_stmt.c S->cols[colno].data = emalloc(colsize+1); S 424 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_long = 0; S 426 ext/pdo_odbc/odbc_stmt.c rc = SQLBindCol(S->stmt, colno+1, SQL_C_CHAR, S->cols[colno].data, S 427 ext/pdo_odbc/odbc_stmt.c S->cols[colno].datalen+1, &S->cols[colno].fetched_len); S 436 ext/pdo_odbc/odbc_stmt.c S->cols[colno].data = emalloc(256); S 437 ext/pdo_odbc/odbc_stmt.c S->going_long = 1; S 438 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_long = 1; S 446 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 447 ext/pdo_odbc/odbc_stmt.c pdo_odbc_column *C = &S->cols[colno]; S 460 ext/pdo_odbc/odbc_stmt.c rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, C->data, S 483 ext/pdo_odbc/odbc_stmt.c rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, S 555 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 560 ext/pdo_odbc/odbc_stmt.c rc = SQLSetCursorName(S->stmt, Z_STRVAL_P(val), Z_STRLEN_P(val)); S 569 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_err_msg, "Unknown Attribute"); S 570 ext/pdo_odbc/odbc_stmt.c S->einfo.what = "setAttribute"; S 571 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_state, "IM0001"); S 579 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 586 ext/pdo_odbc/odbc_stmt.c rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); S 597 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_err_msg, "Unknown Attribute"); S 598 ext/pdo_odbc/odbc_stmt.c S->einfo.what = "getAttribute"; S 599 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_state, "IM0001"); S 608 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 613 ext/pdo_odbc/odbc_stmt.c rc = SQLMoreResults(S->stmt); S 619 ext/pdo_odbc/odbc_stmt.c free_cols(stmt, S TSRMLS_CC); S 621 ext/pdo_odbc/odbc_stmt.c SQLNumResultCols(S->stmt, &colcount); S 623 ext/pdo_odbc/odbc_stmt.c S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); S 624 ext/pdo_odbc/odbc_stmt.c S->going_long = 0; S 215 ext/pdo_pgsql/pgsql_driver.c pdo_pgsql_stmt *S = ecalloc(1, sizeof(pdo_pgsql_stmt)); S 224 ext/pdo_pgsql/pgsql_driver.c S->H = H; S 225 ext/pdo_pgsql/pgsql_driver.c stmt->driver_data = S; S 232 ext/pdo_pgsql/pgsql_driver.c if (S->cursor_name) { S 233 ext/pdo_pgsql/pgsql_driver.c efree(S->cursor_name); S 236 ext/pdo_pgsql/pgsql_driver.c spprintf(&S->cursor_name, 0, "pdo_pgsql_cursor_%08x", (unsigned int) stmt); S 265 ext/pdo_pgsql/pgsql_driver.c spprintf(&S->stmt_name, 0, "pdo_pgsql_stmt_%08x", (unsigned int)stmt); S 269 ext/pdo_pgsql/pgsql_driver.c S->query = nsql; S 271 ext/pdo_pgsql/pgsql_driver.c S->query = estrdup(sql); S 49 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 51 ext/pdo_pgsql/pgsql_statement.c if (S->result) { S 53 ext/pdo_pgsql/pgsql_statement.c PQclear(S->result); S 54 ext/pdo_pgsql/pgsql_statement.c S->result = NULL; S 58 ext/pdo_pgsql/pgsql_statement.c if (S->stmt_name) { S 59 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_db_handle *H = S->H; S 63 ext/pdo_pgsql/pgsql_statement.c if (S->is_prepared) { S 64 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "DEALLOCATE %s", S->stmt_name); S 71 ext/pdo_pgsql/pgsql_statement.c efree(S->stmt_name); S 72 ext/pdo_pgsql/pgsql_statement.c S->stmt_name = NULL; S 74 ext/pdo_pgsql/pgsql_statement.c if (S->param_lengths) { S 75 ext/pdo_pgsql/pgsql_statement.c efree(S->param_lengths); S 76 ext/pdo_pgsql/pgsql_statement.c S->param_lengths = NULL; S 78 ext/pdo_pgsql/pgsql_statement.c if (S->param_values) { S 79 ext/pdo_pgsql/pgsql_statement.c efree(S->param_values); S 80 ext/pdo_pgsql/pgsql_statement.c S->param_values = NULL; S 82 ext/pdo_pgsql/pgsql_statement.c if (S->param_formats) { S 83 ext/pdo_pgsql/pgsql_statement.c efree(S->param_formats); S 84 ext/pdo_pgsql/pgsql_statement.c S->param_formats = NULL; S 86 ext/pdo_pgsql/pgsql_statement.c if (S->param_types) { S 87 ext/pdo_pgsql/pgsql_statement.c efree(S->param_types); S 88 ext/pdo_pgsql/pgsql_statement.c S->param_types = NULL; S 90 ext/pdo_pgsql/pgsql_statement.c if (S->query) { S 91 ext/pdo_pgsql/pgsql_statement.c efree(S->query); S 92 ext/pdo_pgsql/pgsql_statement.c S->query = NULL; S 96 ext/pdo_pgsql/pgsql_statement.c if (S->cursor_name) { S 97 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_db_handle *H = S->H; S 101 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "CLOSE %s", S->cursor_name); S 105 ext/pdo_pgsql/pgsql_statement.c efree(S->cursor_name); S 106 ext/pdo_pgsql/pgsql_statement.c S->cursor_name = NULL; S 109 ext/pdo_pgsql/pgsql_statement.c if(S->cols) { S 110 ext/pdo_pgsql/pgsql_statement.c efree(S->cols); S 111 ext/pdo_pgsql/pgsql_statement.c S->cols = NULL; S 113 ext/pdo_pgsql/pgsql_statement.c efree(S); S 120 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 121 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_db_handle *H = S->H; S 125 ext/pdo_pgsql/pgsql_statement.c if(S->result) { S 126 ext/pdo_pgsql/pgsql_statement.c PQclear(S->result); S 127 ext/pdo_pgsql/pgsql_statement.c S->result = NULL; S 130 ext/pdo_pgsql/pgsql_statement.c S->current_row = 0; S 133 ext/pdo_pgsql/pgsql_statement.c if (S->stmt_name) { S 136 ext/pdo_pgsql/pgsql_statement.c if (!S->is_prepared) { S 140 ext/pdo_pgsql/pgsql_statement.c S->result = PQprepare(H->server, S->stmt_name, S->query, S 142 ext/pdo_pgsql/pgsql_statement.c S->param_types); S 143 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 148 ext/pdo_pgsql/pgsql_statement.c S->is_prepared = 1; S 149 ext/pdo_pgsql/pgsql_statement.c PQclear(S->result); S 152 ext/pdo_pgsql/pgsql_statement.c char *sqlstate = pdo_pgsql_sqlstate(S->result); S 162 ext/pdo_pgsql/pgsql_statement.c snprintf(buf, sizeof(buf), "DEALLOCATE %s", S->stmt_name); S 175 ext/pdo_pgsql/pgsql_statement.c S->result = PQexecPrepared(H->server, S->stmt_name, S 179 ext/pdo_pgsql/pgsql_statement.c (const char**)S->param_values, S 180 ext/pdo_pgsql/pgsql_statement.c S->param_lengths, S 181 ext/pdo_pgsql/pgsql_statement.c S->param_formats, S 185 ext/pdo_pgsql/pgsql_statement.c if (S->cursor_name) { S 187 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "DECLARE %s CURSOR FOR %s", S->cursor_name, stmt->active_query_string); S 188 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, q); S 191 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, stmt->active_query_string); S 193 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 196 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result)); S 201 ext/pdo_pgsql/pgsql_statement.c stmt->column_count = (int) PQnfields(S->result); S 202 ext/pdo_pgsql/pgsql_statement.c S->cols = ecalloc(stmt->column_count, sizeof(pdo_pgsql_column)); S 206 ext/pdo_pgsql/pgsql_statement.c stmt->row_count = (long)atoi(PQcmdTuples(S->result)); S 207 ext/pdo_pgsql/pgsql_statement.c H->pgoid = PQoidValue(S->result); S 209 ext/pdo_pgsql/pgsql_statement.c stmt->row_count = (long)PQntuples(S->result); S 219 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 221 ext/pdo_pgsql/pgsql_statement.c if (S->stmt_name && param->is_param) { S 256 ext/pdo_pgsql/pgsql_statement.c if (!S->param_values) { S 257 ext/pdo_pgsql/pgsql_statement.c S->param_values = ecalloc( S 260 ext/pdo_pgsql/pgsql_statement.c S->param_lengths = ecalloc( S 263 ext/pdo_pgsql/pgsql_statement.c S->param_formats = ecalloc( S 266 ext/pdo_pgsql/pgsql_statement.c S->param_types = ecalloc( S 290 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = (char*)&P->oid; S 291 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = sizeof(P->oid); S 292 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 1; S 293 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = OIDOID; S 310 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = NULL; S 311 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = 0; S 313 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = Z_BVAL_P(param->parameter) ? "t" : "f"; S 314 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = 1; S 315 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 0; S 319 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = Z_STRVAL_P(param->parameter); S 320 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = Z_STRLEN_P(param->parameter); S 321 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 0; S 325 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = 0; S 326 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 1; S 328 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = 0; S 341 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 343 ext/pdo_pgsql/pgsql_statement.c if (S->cursor_name) { S 356 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "FETCH %s %ld FROM %s", ori_str, offset, S->cursor_name); S 357 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(S->H->server, q); S 359 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 362 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result)); S 366 ext/pdo_pgsql/pgsql_statement.c S->current_row = 1; S 370 ext/pdo_pgsql/pgsql_statement.c if (S->current_row < stmt->row_count) { S 371 ext/pdo_pgsql/pgsql_statement.c S->current_row++; S 381 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 385 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 389 ext/pdo_pgsql/pgsql_statement.c cols[colno].name = estrdup(PQfname(S->result, colno)); S 391 ext/pdo_pgsql/pgsql_statement.c cols[colno].maxlen = PQfsize(S->result, colno); S 392 ext/pdo_pgsql/pgsql_statement.c cols[colno].precision = PQfmod(S->result, colno); S 393 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].pgsql_type = PQftype(S->result, colno); S 395 ext/pdo_pgsql/pgsql_statement.c switch(S->cols[colno].pgsql_type) { S 547 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 551 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 556 ext/pdo_pgsql/pgsql_statement.c if (PQgetisnull(S->result, S->current_row - 1, colno)) { /* Check if we got NULL */ S 560 ext/pdo_pgsql/pgsql_statement.c *ptr = PQgetvalue(S->result, S->current_row - 1, colno); S 561 ext/pdo_pgsql/pgsql_statement.c *len = PQgetlength(S->result, S->current_row - 1, colno); S 566 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].intval = atol(*ptr); S 567 ext/pdo_pgsql/pgsql_statement.c *ptr = (char *) &(S->cols[colno].intval); S 572 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].boolval = **ptr == 't' ? 1: 0; S 573 ext/pdo_pgsql/pgsql_statement.c *ptr = (char *) &(S->cols[colno].boolval); S 578 ext/pdo_pgsql/pgsql_statement.c if (S->cols[colno].pgsql_type == OIDOID) { S 582 ext/pdo_pgsql/pgsql_statement.c int loid = lo_open(S->H->server, oid, INV_READ); S 610 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 615 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 624 ext/pdo_pgsql/pgsql_statement.c add_assoc_long(return_value, "pgsql:oid", S->cols[colno].pgsql_type); S 627 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%d", S->cols[colno].pgsql_type); S 628 ext/pdo_pgsql/pgsql_statement.c res = PQexec(S->H->server, q); S 142 ext/pdo_sqlite/sqlite/src/parse.y create_table_args ::= AS select(S). { S 143 ext/pdo_sqlite/sqlite/src/parse.y sqlite3EndTable(pParse,0,0,S); S 144 ext/pdo_sqlite/sqlite/src/parse.y sqlite3SelectDelete(S); S 358 ext/pdo_sqlite/sqlite/src/parse.y cmd ::= CREATE(X) temp(T) VIEW ifnotexists(E) nm(Y) dbnm(Z) AS select(S). { S 359 ext/pdo_sqlite/sqlite/src/parse.y sqlite3CreateView(pParse, &X, &Y, &Z, S, T, E); S 464 ext/pdo_sqlite/sqlite/src/parse.y seltablist(A) ::= stl_prefix(X) LP seltablist_paren(S) RP S 466 ext/pdo_sqlite/sqlite/src/parse.y A = sqlite3SrcListAppendFromTerm(X,0,0,&Z,S,N,U); S 475 ext/pdo_sqlite/sqlite/src/parse.y seltablist_paren(A) ::= select(S). {A = S;} S 591 ext/pdo_sqlite/sqlite/src/parse.y cmd ::= insert_cmd(R) INTO fullname(X) inscollist_opt(F) select(S). S 592 ext/pdo_sqlite/sqlite/src/parse.y {sqlite3Insert(pParse, X, 0, S, F, R);} S 850 ext/pdo_sqlite/sqlite/src/parse.y cmd ::= CREATE(S) uniqueflag(U) INDEX ifnotexists(NE) nm(X) dbnm(D) S 853 ext/pdo_sqlite/sqlite/src/parse.y &S, &E, SQLITE_SO_ASC, NE); S 929 ext/pdo_sqlite/sqlite/src/parse.y cmd ::= CREATE trigger_decl(A) BEGIN trigger_cmd_list(S) END(Z). { S 933 ext/pdo_sqlite/sqlite/src/parse.y sqlite3FinishTrigger(pParse, S, &all); S 987 ext/pdo_sqlite/sqlite/src/parse.y trigger_cmd(A) ::= insert_cmd(R) INTO nm(X) inscollist_opt(F) select(S). S 988 ext/pdo_sqlite/sqlite/src/parse.y {A = sqlite3TriggerInsertStep(&X, F, 0, S, R);} S 160 ext/pdo_sqlite/sqlite_driver.c pdo_sqlite_stmt *S = ecalloc(1, sizeof(pdo_sqlite_stmt)); S 164 ext/pdo_sqlite/sqlite_driver.c S->H = H; S 165 ext/pdo_sqlite/sqlite_driver.c stmt->driver_data = S; S 175 ext/pdo_sqlite/sqlite_driver.c i = sqlite3_prepare(H->db, sql, sql_len, &S->stmt, &tail); S 36 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 38 ext/pdo_sqlite/sqlite_statement.c if (S->stmt) { S 39 ext/pdo_sqlite/sqlite_statement.c sqlite3_finalize(S->stmt); S 40 ext/pdo_sqlite/sqlite_statement.c S->stmt = NULL; S 42 ext/pdo_sqlite/sqlite_statement.c efree(S); S 48 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 50 ext/pdo_sqlite/sqlite_statement.c if (stmt->executed && !S->done) { S 51 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 54 ext/pdo_sqlite/sqlite_statement.c S->done = 0; S 55 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_step(S->stmt)) { S 57 ext/pdo_sqlite/sqlite_statement.c S->pre_fetched = 1; S 58 ext/pdo_sqlite/sqlite_statement.c stmt->column_count = sqlite3_data_count(S->stmt); S 62 ext/pdo_sqlite/sqlite_statement.c stmt->column_count = sqlite3_column_count(S->stmt); S 63 ext/pdo_sqlite/sqlite_statement.c stmt->row_count = sqlite3_changes(S->H->db); S 64 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 65 ext/pdo_sqlite/sqlite_statement.c S->done = 1; S 69 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 81 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 85 ext/pdo_sqlite/sqlite_statement.c if (stmt->executed && !S->done) { S 86 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 87 ext/pdo_sqlite/sqlite_statement.c S->done = 1; S 93 ext/pdo_sqlite/sqlite_statement.c param->paramno = sqlite3_bind_parameter_index(S->stmt, param->name) - 1; S 101 ext/pdo_sqlite/sqlite_statement.c if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { S 126 ext/pdo_sqlite/sqlite_statement.c if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { S 131 ext/pdo_sqlite/sqlite_statement.c if(SQLITE_OK == sqlite3_bind_text(S->stmt, param->paramno + 1, S 153 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 155 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 158 ext/pdo_sqlite/sqlite_statement.c if (S->pre_fetched) { S 159 ext/pdo_sqlite/sqlite_statement.c S->pre_fetched = 0; S 162 ext/pdo_sqlite/sqlite_statement.c if (S->done) { S 165 ext/pdo_sqlite/sqlite_statement.c i = sqlite3_step(S->stmt); S 171 ext/pdo_sqlite/sqlite_statement.c S->done = 1; S 172 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 176 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 185 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 187 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_column_count(S->stmt)) { S 193 ext/pdo_sqlite/sqlite_statement.c stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno)); S 198 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 214 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 215 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 218 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_data_count(S->stmt)) { S 223 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 230 ext/pdo_sqlite/sqlite_statement.c *ptr = (char*)sqlite3_column_blob(S->stmt, colno); S 231 ext/pdo_sqlite/sqlite_statement.c *len = sqlite3_column_bytes(S->stmt, colno); S 235 ext/pdo_sqlite/sqlite_statement.c *ptr = (char*)sqlite3_column_text(S->stmt, colno); S 236 ext/pdo_sqlite/sqlite_statement.c *len = sqlite3_column_bytes(S->stmt, colno); S 245 ext/pdo_sqlite/sqlite_statement.c *ptr = (char*)sqlite3_column_text(S->stmt, colno); S 246 ext/pdo_sqlite/sqlite_statement.c *len = sqlite3_column_bytes(S->stmt, colno); S 253 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 257 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 260 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_data_count(S->stmt)) { S 270 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 290 ext/pdo_sqlite/sqlite_statement.c str = (char*)sqlite3_column_decltype(S->stmt, colno); S 302 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 303 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 99 ext/sqlite/libsqlite/src/parse.y create_table_args ::= AS select(S). { S 100 ext/sqlite/libsqlite/src/parse.y sqliteEndTable(pParse,0,S); S 101 ext/sqlite/libsqlite/src/parse.y sqliteSelectDelete(S); S 271 ext/sqlite/libsqlite/src/parse.y cmd ::= CREATE(X) temp(T) VIEW nm(Y) AS select(S). { S 272 ext/sqlite/libsqlite/src/parse.y sqliteCreateView(pParse, &X, &Y, S, T); S 380 ext/sqlite/libsqlite/src/parse.y seltablist(A) ::= stl_prefix(X) LP seltablist_paren(S) RP S 383 ext/sqlite/libsqlite/src/parse.y A->a[A->nSrc-1].pSelect = S; S 401 ext/sqlite/libsqlite/src/parse.y seltablist_paren(A) ::= select(S). {A = S;} S 505 ext/sqlite/libsqlite/src/parse.y cmd ::= insert_cmd(R) INTO nm(X) dbnm(D) inscollist_opt(F) select(S). S 506 ext/sqlite/libsqlite/src/parse.y {sqliteInsert(pParse, sqliteSrcListAppend(0,&X,&D), 0, S, F, R);} S 731 ext/sqlite/libsqlite/src/parse.y cmd ::= CREATE(S) uniqueflag(U) INDEX nm(X) S 736 ext/sqlite/libsqlite/src/parse.y sqliteCreateIndex(pParse, &X, pSrc, Z, U, &S, &E); S 792 ext/sqlite/libsqlite/src/parse.y cmd ::= CREATE(A) trigger_decl BEGIN trigger_cmd_list(S) END(Z). { S 796 ext/sqlite/libsqlite/src/parse.y sqliteFinishTrigger(pParse, S, &all); S 846 ext/sqlite/libsqlite/src/parse.y trigger_cmd(A) ::= insert_cmd(R) INTO nm(X) inscollist_opt(F) select(S). S 847 ext/sqlite/libsqlite/src/parse.y {A = sqliteTriggerInsertStep(&X, F, 0, S, R);} S 65 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data; S 67 ext/sqlite/pdo_sqlite2.c if (S->vm) { S 69 ext/sqlite/pdo_sqlite2.c sqlite_finalize(S->vm, &errmsg); S 73 ext/sqlite/pdo_sqlite2.c S->vm = NULL; S 75 ext/sqlite/pdo_sqlite2.c if (S->einfo.errmsg) { S 76 ext/sqlite/pdo_sqlite2.c pefree(S->einfo.errmsg, stmt->dbh->is_persistent); S 78 ext/sqlite/pdo_sqlite2.c efree(S); S 84 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data; S 88 ext/sqlite/pdo_sqlite2.c if (stmt->executed && !S->done) { S 89 ext/sqlite/pdo_sqlite2.c sqlite_finalize(S->vm, &errmsg); S 92 ext/sqlite/pdo_sqlite2.c S->vm = NULL; S 95 ext/sqlite/pdo_sqlite2.c S->einfo.errcode = sqlite_compile(S->H->db, stmt->active_query_string, &tail, &S->vm, &errmsg); S 96 ext/sqlite/pdo_sqlite2.c if (S->einfo.errcode != SQLITE_OK) { S 101 ext/sqlite/pdo_sqlite2.c S->done = 0; S 102 ext/sqlite/pdo_sqlite2.c S->einfo.errcode = sqlite_step(S->vm, &S->ncols, &S->rowdata, &S->colnames); S 103 ext/sqlite/pdo_sqlite2.c switch (S->einfo.errcode) { S 105 ext/sqlite/pdo_sqlite2.c S->pre_fetched = 1; S 106 ext/sqlite/pdo_sqlite2.c stmt->column_count = S->ncols; S 110 ext/sqlite/pdo_sqlite2.c stmt->column_count = S->ncols; S 111 ext/sqlite/pdo_sqlite2.c stmt->row_count = sqlite_changes(S->H->db); S 112 ext/sqlite/pdo_sqlite2.c S->einfo.errcode = sqlite_reset(S->vm, &errmsg); S 113 ext/sqlite/pdo_sqlite2.c if (S->einfo.errcode != SQLITE_OK) { S 116 ext/sqlite/pdo_sqlite2.c S->done = 1; S 137 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data; S 140 ext/sqlite/pdo_sqlite2.c if (!S->vm) { S 143 ext/sqlite/pdo_sqlite2.c if (S->pre_fetched) { S 144 ext/sqlite/pdo_sqlite2.c S->pre_fetched = 0; S 147 ext/sqlite/pdo_sqlite2.c if (S->done) { S 151 ext/sqlite/pdo_sqlite2.c S->einfo.errcode = sqlite_step(S->vm, &S->ncols, &S->rowdata, &S->colnames); S 152 ext/sqlite/pdo_sqlite2.c switch (S->einfo.errcode) { S 157 ext/sqlite/pdo_sqlite2.c S->done = 1; S 158 ext/sqlite/pdo_sqlite2.c S->einfo.errcode = sqlite_reset(S->vm, &errmsg); S 159 ext/sqlite/pdo_sqlite2.c if (S->einfo.errcode != SQLITE_OK) { S 173 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data; S 175 ext/sqlite/pdo_sqlite2.c if(colno >= S->ncols) { S 181 ext/sqlite/pdo_sqlite2.c stmt->columns[colno].name = estrdup(S->colnames[colno]); S 192 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = (pdo_sqlite2_stmt*)stmt->driver_data; S 193 ext/sqlite/pdo_sqlite2.c if (!S->vm) { S 196 ext/sqlite/pdo_sqlite2.c if(colno >= S->ncols) { S 201 ext/sqlite/pdo_sqlite2.c if (S->rowdata[colno]) { S 202 ext/sqlite/pdo_sqlite2.c if (S->rowdata[colno][0] == '\x01') { S 205 ext/sqlite/pdo_sqlite2.c *ptr = emalloc(strlen(S->rowdata[colno])); S 206 ext/sqlite/pdo_sqlite2.c *len = php_sqlite_decode_binary(S->rowdata[colno]+1, *ptr); S 209 ext/sqlite/pdo_sqlite2.c *ptr = (char*)S->rowdata[colno]; S 237 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S; S 240 ext/sqlite/pdo_sqlite2.c S = stmt->driver_data; S 241 ext/sqlite/pdo_sqlite2.c einfo = &S->einfo; S 303 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S; S 306 ext/sqlite/pdo_sqlite2.c S = stmt->driver_data; S 307 ext/sqlite/pdo_sqlite2.c einfo = &S->einfo; S 343 ext/sqlite/pdo_sqlite2.c pdo_sqlite2_stmt *S = ecalloc(1, sizeof(pdo_sqlite2_stmt)); S 345 ext/sqlite/pdo_sqlite2.c S->H = H; S 346 ext/sqlite/pdo_sqlite2.c stmt->driver_data = S; S 1803 ext/tidy/tidy.c TIDY_TAG_CONST(S); S 50 ext/zip/lib/zip_err_str.c S, S 51 ext/zip/lib/zip_err_str.c S, S 52 ext/zip/lib/zip_err_str.c S, S 53 ext/zip/lib/zip_err_str.c S, S 54 ext/zip/lib/zip_err_str.c S, S 59 ext/zip/lib/zip_err_str.c S, S 60 ext/zip/lib/zip_err_str.c S, S 70 ext/zip/lib/zip_err_str.c S,