S 659 Zend/zend_alloc.c #define ZEND_MM_LARGE_BUCKET_INDEX(S) zend_mm_high_bit(S) S 1282 Zend/zend_strtod.c static int quorem(Bigint *b, Bigint *S) S 1293 Zend/zend_strtod.c n = S->wds; S 1300 Zend/zend_strtod.c sx = S->x; S 1342 Zend/zend_strtod.c if (cmp(b, S) >= 0) { S 1347 Zend/zend_strtod.c sx = S->x; S 1486 Zend/zend_strtod.c Bigint *b, *b1, *delta, *mlo, *mhi, *S, *tmp; S 1689 Zend/zend_strtod.c S = mhi = 0; S 1752 Zend/zend_strtod.c S = mhi = 0; S 1842 Zend/zend_strtod.c S = i2b(1); S 1844 Zend/zend_strtod.c S = pow5mult(S, s5); S 1870 Zend/zend_strtod.c if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0x1f)) S 1873 Zend/zend_strtod.c if ((i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0xf)) S 1891 Zend/zend_strtod.c S = lshift(S, s2); S 1893 Zend/zend_strtod.c if (cmp(b,S) < 0) { S 1902 Zend/zend_strtod.c if (ilim < 0 || cmp(b,S = multadd(S,5,0)) <= 0) { S 1929 Zend/zend_strtod.c dig = quorem(b,S) + '0'; S 1934 Zend/zend_strtod.c delta = diff(S, mhi); S 1954 Zend/zend_strtod.c j1 = cmp(b, S); S 1985 Zend/zend_strtod.c *s++ = dig = quorem(b,S) + '0'; S 1994 Zend/zend_strtod.c j = cmp(b, S); S 2010 Zend/zend_strtod.c Bfree(S); S 201 ext/hash/hash_gost.c S(s, l, r); \ S 168 ext/hash/hash_ripemd.c static const unsigned char S[80] = { S 182 ext/hash/hash_ripemd.c #define ROLS(j, x) (((x) << S[j]) | ((x) >> (32 - S[j]))) S 42 ext/pdo_dblib/dblib_driver.c pdo_dblib_stmt *S = NULL; S 47 ext/pdo_dblib/dblib_driver.c S = (pdo_dblib_stmt*)stmt->driver_data; S 48 ext/pdo_dblib/dblib_driver.c einfo = &S->err; S 97 ext/pdo_dblib/dblib_driver.c pdo_dblib_stmt *S = ecalloc(1, sizeof(*S)); S 99 ext/pdo_dblib/dblib_driver.c S->H = H; S 100 ext/pdo_dblib/dblib_driver.c stmt->driver_data = S; S 103 ext/pdo_dblib/dblib_driver.c S->err.sqlstate = stmt->error_code; S 100 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 101 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 114 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 119 ext/pdo_dblib/dblib_stmt.c efree(S); S 126 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 127 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 149 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 150 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 153 ext/pdo_dblib/dblib_stmt.c dbsetuserdata(H->link, (BYTE*) &S->err); S 179 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 180 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 198 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 199 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 219 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 220 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 292 ext/pdo_dblib/dblib_stmt.c pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; S 293 ext/pdo_dblib/dblib_stmt.c pdo_dblib_db_handle *H = S->H; S 141 ext/pdo_firebird/firebird_driver.c pdo_firebird_stmt *S = NULL; S 162 ext/pdo_firebird/firebird_driver.c S = ecalloc(1, sizeof(*S)-sizeof(XSQLDA) + XSQLDA_LENGTH(num_sqlda.sqld)); S 163 ext/pdo_firebird/firebird_driver.c S->H = H; S 164 ext/pdo_firebird/firebird_driver.c S->stmt = s; S 165 ext/pdo_firebird/firebird_driver.c S->fetch_buf = ecalloc(1,sizeof(char*) * num_sqlda.sqld); S 166 ext/pdo_firebird/firebird_driver.c S->out_sqlda.version = PDO_FB_SQLDA_VERSION; S 167 ext/pdo_firebird/firebird_driver.c S->out_sqlda.sqln = stmt->column_count = num_sqlda.sqld; S 168 ext/pdo_firebird/firebird_driver.c S->named_params = np; S 175 ext/pdo_firebird/firebird_driver.c S->statement_type = result[3]; S 178 ext/pdo_firebird/firebird_driver.c if (isc_dsql_describe(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { S 189 ext/pdo_firebird/firebird_driver.c S->in_sqlda = ecalloc(1,XSQLDA_LENGTH(num_sqlda.sqld)); S 190 ext/pdo_firebird/firebird_driver.c S->in_sqlda->version = PDO_FB_SQLDA_VERSION; S 191 ext/pdo_firebird/firebird_driver.c S->in_sqlda->sqln = num_sqlda.sqld; S 193 ext/pdo_firebird/firebird_driver.c if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { S 198 ext/pdo_firebird/firebird_driver.c stmt->driver_data = S; S 211 ext/pdo_firebird/firebird_driver.c if (S) { S 212 ext/pdo_firebird/firebird_driver.c if (S->in_sqlda) { S 213 ext/pdo_firebird/firebird_driver.c efree(S->in_sqlda); S 215 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 99 ext/pdo_firebird/firebird_statement.c if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { S 102 ext/pdo_firebird/firebird_statement.c S->cursor_open = 0; S 105 ext/pdo_firebird/firebird_statement.c if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { S 114 ext/pdo_firebird/firebird_statement.c switch (S->statement_type) { S 119 ext/pdo_firebird/firebird_statement.c if (isc_dsql_sql_info(H->isc_status, &S->stmt, sizeof ( info_count), S 143 ext/pdo_firebird/firebird_statement.c *S->name = 0; S 144 ext/pdo_firebird/firebird_statement.c S->cursor_open = (S->out_sqlda.sqln > 0); /* A cursor is opened, when more than zero columns returned */ S 145 ext/pdo_firebird/firebird_statement.c S->exhausted = !S->cursor_open; S 160 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 161 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 166 ext/pdo_firebird/firebird_statement.c } else if (!S->exhausted) { S 167 ext/pdo_firebird/firebird_statement.c if (isc_dsql_fetch(H->isc_status, &S->stmt, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { S 171 ext/pdo_firebird/firebird_statement.c S->exhausted = 1; S 174 ext/pdo_firebird/firebird_statement.c if (S->statement_type == isc_info_sql_stmt_exec_procedure) { S 175 ext/pdo_firebird/firebird_statement.c S->exhausted = 1; S 187 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 189 ext/pdo_firebird/firebird_statement.c XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; S 197 ext/pdo_firebird/firebird_statement.c colname_len = (S->H->fetch_table_names && var->relname_length) S 226 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 227 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 272 ext/pdo_firebird/firebird_statement.c *ptr = S->fetch_buf[colno] = erealloc(*ptr, *len+1); S 303 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 304 ext/pdo_firebird/firebird_statement.c XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; S 342 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 367 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 371 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 375 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 379 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 383 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL); S 388 ext/pdo_firebird/firebird_statement.c fmt = S->H->date_format ? S->H->date_format : PDO_FB_DEF_DATE_FMT; S 392 ext/pdo_firebird/firebird_statement.c fmt = S->H->time_format ? S->H->time_format : PDO_FB_DEF_TIME_FMT; S 396 ext/pdo_firebird/firebird_statement.c fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; S 400 ext/pdo_firebird/firebird_statement.c *ptr = FETCH_BUF(S->fetch_buf[colno], char, *len, NULL); S 415 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 416 ext/pdo_firebird/firebird_statement.c pdo_firebird_db_handle *H = S->H; S 455 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 456 ext/pdo_firebird/firebird_statement.c XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; S 465 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Invalid parameter index"; S 472 ext/pdo_firebird/firebird_statement.c if (SUCCESS == zend_hash_find(S->named_params, param->name, param->namelen+1, (void*)&index)) { S 491 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Invalid parameter name"; S 525 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Cannot bind to array field"; S 575 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Parameter requires non-null value"; S 582 ext/pdo_firebird/firebird_statement.c S->H->last_app_error = "Binding arrays/objects is not supported"; S 637 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 645 ext/pdo_firebird/firebird_statement.c if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, Z_STRVAL_P(val),0)) { S 649 ext/pdo_firebird/firebird_statement.c strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); S 658 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 664 ext/pdo_firebird/firebird_statement.c if (*S->name) { S 665 ext/pdo_firebird/firebird_statement.c ZVAL_STRING(val,S->name,1); S 677 ext/pdo_firebird/firebird_statement.c pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; S 680 ext/pdo_firebird/firebird_statement.c if ((*S->name || S->cursor_open) && isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close)) { S 684 ext/pdo_firebird/firebird_statement.c *S->name = 0; S 685 ext/pdo_firebird/firebird_statement.c S->cursor_open = 0; S 51 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = NULL; S 56 ext/pdo_mysql/mysql_driver.c S = (pdo_mysql_stmt*)stmt->driver_data; S 58 ext/pdo_mysql/mysql_driver.c einfo = &S->einfo; S 64 ext/pdo_mysql/mysql_driver.c if (S && S->stmt) { S 65 ext/pdo_mysql/mysql_driver.c einfo->errcode = mysql_stmt_errno(S->stmt); S 100 ext/pdo_mysql/mysql_driver.c if (S && S->stmt) { S 101 ext/pdo_mysql/mysql_driver.c strcpy(*pdo_err, mysql_stmt_sqlstate(S->stmt)); S 125 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 126 ext/pdo_mysql/mysql_driver.c einfo = &S->einfo; S 167 ext/pdo_mysql/mysql_driver.c pdo_mysql_stmt *S = ecalloc(1, sizeof(pdo_mysql_stmt)); S 177 ext/pdo_mysql/mysql_driver.c S->H = H; S 178 ext/pdo_mysql/mysql_driver.c stmt->driver_data = S; S 202 ext/pdo_mysql/mysql_driver.c if (!(S->stmt = mysql_stmt_init(H->server))) { S 210 ext/pdo_mysql/mysql_driver.c if (mysql_stmt_prepare(S->stmt, sql, sql_len)) { S 229 ext/pdo_mysql/mysql_driver.c S->num_params = mysql_stmt_param_count(S->stmt); S 231 ext/pdo_mysql/mysql_driver.c if (S->num_params) { S 232 ext/pdo_mysql/mysql_driver.c S->params_given = 0; S 234 ext/pdo_mysql/mysql_driver.c S->params = NULL; S 236 ext/pdo_mysql/mysql_driver.c S->params = ecalloc(S->num_params, sizeof(MYSQL_BIND)); S 237 ext/pdo_mysql/mysql_driver.c S->in_null = ecalloc(S->num_params, sizeof(my_bool)); S 238 ext/pdo_mysql/mysql_driver.c S->in_length = ecalloc(S->num_params, sizeof(unsigned long)); S 243 ext/pdo_mysql/mysql_driver.c S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0 TSRMLS_CC); S 49 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 52 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 53 ext/pdo_mysql/mysql_statement.c if (S->result) { S 55 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 56 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 58 ext/pdo_mysql/mysql_statement.c if (S->einfo.errmsg) { S 59 ext/pdo_mysql/mysql_statement.c pefree(S->einfo.errmsg, stmt->dbh->is_persistent); S 60 ext/pdo_mysql/mysql_statement.c S->einfo.errmsg = NULL; S 62 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 63 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt_close(S->stmt); S 64 ext/pdo_mysql/mysql_statement.c S->stmt = NULL; S 68 ext/pdo_mysql/mysql_statement.c if (S->params) { S 69 ext/pdo_mysql/mysql_statement.c efree(S->params); S 71 ext/pdo_mysql/mysql_statement.c if (S->in_null) { S 72 ext/pdo_mysql/mysql_statement.c efree(S->in_null); S 74 ext/pdo_mysql/mysql_statement.c if (S->in_length) { S 75 ext/pdo_mysql/mysql_statement.c efree(S->in_length); S 78 ext/pdo_mysql/mysql_statement.c if (S->bound_result) S 82 ext/pdo_mysql/mysql_statement.c pdo_free_bound_result(S->bound_result[i]); S 85 ext/pdo_mysql/mysql_statement.c efree(S->bound_result); S 86 ext/pdo_mysql/mysql_statement.c efree(S->out_null); S 87 ext/pdo_mysql/mysql_statement.c efree(S->out_length); S 92 ext/pdo_mysql/mysql_statement.c if (S->H->server) { S 93 ext/pdo_mysql/mysql_statement.c while (mysql_more_results(S->H->server)) { S 95 ext/pdo_mysql/mysql_statement.c if (mysql_next_result(S->H->server) != 0) { S 99 ext/pdo_mysql/mysql_statement.c res = mysql_store_result(S->H->server); S 107 ext/pdo_mysql/mysql_statement.c if (!S->stmt && S->current_data) { S 108 ext/pdo_mysql/mysql_statement.c mnd_free(S->current_data); S 112 ext/pdo_mysql/mysql_statement.c efree(S); S 120 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = stmt->driver_data; S 121 ext/pdo_mysql/mysql_statement.c row_count = (long) mysql_stmt_affected_rows(S->stmt); S 130 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 131 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 140 ext/pdo_mysql/mysql_statement.c S->result = mysql_use_result(H->server); S 142 ext/pdo_mysql/mysql_statement.c S->result = mysql_store_result(H->server); S 144 ext/pdo_mysql/mysql_statement.c if (NULL == S->result) { S 149 ext/pdo_mysql/mysql_statement.c stmt->row_count = (long) mysql_num_rows(S->result); S 150 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int) mysql_num_fields(S->result); S 151 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 164 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = stmt->driver_data; S 165 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 170 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_bind_param(S->stmt, S->params) || mysql_stmt_execute(S->stmt)) { S 171 ext/pdo_mysql/mysql_statement.c if (S->params) { S 172 ext/pdo_mysql/mysql_statement.c memset(S->params, 0, S->num_params * sizeof(MYSQL_BIND)); S 175 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_errno(S->stmt) == 2057) { S 177 ext/pdo_mysql/mysql_statement.c S->stmt = NULL; S 182 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 186 ext/pdo_mysql/mysql_statement.c S->result = mysql_stmt_result_metadata(S->stmt); S 187 ext/pdo_mysql/mysql_statement.c if (S->result) { S 188 ext/pdo_mysql/mysql_statement.c int calc_max_length = H->buffered && S->max_length == 1; S 189 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 190 ext/pdo_mysql/mysql_statement.c if (S->bound_result) { S 193 ext/pdo_mysql/mysql_statement.c efree(S->bound_result[i].buffer); S 195 ext/pdo_mysql/mysql_statement.c efree(S->bound_result); S 196 ext/pdo_mysql/mysql_statement.c efree(S->out_null); S 197 ext/pdo_mysql/mysql_statement.c efree(S->out_length); S 200 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int)mysql_num_fields(S->result); S 201 ext/pdo_mysql/mysql_statement.c S->bound_result = ecalloc(stmt->column_count, sizeof(MYSQL_BIND)); S 202 ext/pdo_mysql/mysql_statement.c S->out_null = ecalloc(stmt->column_count, sizeof(my_bool)); S 203 ext/pdo_mysql/mysql_statement.c S->out_length = ecalloc(stmt->column_count, sizeof(unsigned long)); S 207 ext/pdo_mysql/mysql_statement.c if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) { S 209 ext/pdo_mysql/mysql_statement.c mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on); S 212 ext/pdo_mysql/mysql_statement.c switch (S->fields[i].type) { S 214 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH + 1; S 217 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_INT_WIDTH + 1; S 220 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH + 1; S 223 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH + 1; S 226 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH + 1; S 229 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = S 230 ext/pdo_mysql/mysql_statement.c S->fields[i].max_length? S->fields[i].max_length: S 231 ext/pdo_mysql/mysql_statement.c S->fields[i].length; S 233 ext/pdo_mysql/mysql_statement.c if (S->bound_result[i].buffer_length > H->max_buffer_size) { S 234 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = H->max_buffer_size; S 242 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 243 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_length = 128; S 246 ext/pdo_mysql/mysql_statement.c S->out_length[i] = 0; S 248 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); S 249 ext/pdo_mysql/mysql_statement.c S->bound_result[i].is_null = &S->out_null[i]; S 250 ext/pdo_mysql/mysql_statement.c S->bound_result[i].length = &S->out_length[i]; S 251 ext/pdo_mysql/mysql_statement.c S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; S 254 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_bind_result(S->stmt, S->bound_result)) { S 261 ext/pdo_mysql/mysql_statement.c mysql_stmt_store_result(S->stmt); S 275 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = stmt->driver_data; S 276 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 281 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_execute(S->stmt)) { S 286 ext/pdo_mysql/mysql_statement.c if (S->result) { S 288 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 289 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 293 ext/pdo_mysql/mysql_statement.c stmt->column_count = mysql_stmt_field_count(S->stmt); S 295 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_result(S->stmt, i); S 298 ext/pdo_mysql/mysql_statement.c S->result = mysqlnd_stmt_result_metadata(S->stmt); S 299 ext/pdo_mysql/mysql_statement.c if (S->result) { S 300 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 303 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_store_result(S->stmt)) { S 317 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 318 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 320 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 322 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 327 ext/pdo_mysql/mysql_statement.c if (S->result) { S 328 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 329 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 343 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 344 ext/pdo_mysql/mysql_statement.c pdo_mysql_db_handle *H = S->H; S 347 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 351 ext/pdo_mysql/mysql_statement.c if (!mysqlnd_stmt_more_results(S->stmt)) { S 354 ext/pdo_mysql/mysql_statement.c if (mysqlnd_stmt_next_result(S->stmt)) { S 358 ext/pdo_mysql/mysql_statement.c if (!mysqlnd_stmt_more_results(S->stmt)) { S 369 ext/pdo_mysql/mysql_statement.c if (S->result) { S 370 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 371 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 377 ext/pdo_mysql/mysql_statement.c stmt->column_count = mysql_stmt_field_count(S->stmt); S 379 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_result(S->stmt, i); S 383 ext/pdo_mysql/mysql_statement.c S->result = mysqlnd_stmt_result_metadata(S->stmt); S 384 ext/pdo_mysql/mysql_statement.c if (S->result) { S 385 ext/pdo_mysql/mysql_statement.c S->fields = mysql_fetch_fields(S->result); S 389 ext/pdo_mysql/mysql_statement.c if (mysql_stmt_store_result(S->stmt)) { S 394 ext/pdo_mysql/mysql_statement.c row_count = (long) mysql_stmt_affected_rows(S->stmt); S 404 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 405 ext/pdo_mysql/mysql_statement.c stmt->column_count = (int)mysql_num_fields(S->result); S 406 ext/pdo_mysql/mysql_statement.c mysql_stmt_free_result(S->stmt); S 409 ext/pdo_mysql/mysql_statement.c if (S->result) { S 410 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 411 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 454 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 457 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 459 ext/pdo_mysql/mysql_statement.c if (S->stmt && param->is_param) { S 463 ext/pdo_mysql/mysql_statement.c if (param->paramno < 0 || param->paramno >= S->num_params) { S 467 ext/pdo_mysql/mysql_statement.c S->params_given++; S 470 ext/pdo_mysql/mysql_statement.c b = &S->params[param->paramno]; S 472 ext/pdo_mysql/mysql_statement.c b->is_null = &S->in_null[param->paramno]; S 473 ext/pdo_mysql/mysql_statement.c b->length = &S->in_length[param->paramno]; S 479 ext/pdo_mysql/mysql_statement.c if (S->params_given < (unsigned int) S->num_params) { S 489 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, param->parameter, MYSQL_TYPE_NULL); S 535 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, param->parameter, MYSQL_TYPE_VAR_STRING); S 539 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, param->parameter, MYSQL_TYPE_LONGLONG); S 541 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, param->parameter, MYSQL_TYPE_LONG); S 545 ext/pdo_mysql/mysql_statement.c mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, param->parameter, MYSQL_TYPE_DOUBLE); S 592 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 597 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 598 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 599 ext/pdo_mysql/mysql_statement.c if (FAIL == mysqlnd_stmt_fetch(S->stmt, &fetched_anything) || fetched_anything == FALSE) { S 608 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 609 ext/pdo_mysql/mysql_statement.c ret = mysql_stmt_fetch(S->stmt); S 628 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 633 ext/pdo_mysql/mysql_statement.c if (!S->stmt && S->current_data) { S 634 ext/pdo_mysql/mysql_statement.c mnd_free(S->current_data); S 638 ext/pdo_mysql/mysql_statement.c if ((S->current_data = mysql_fetch_row(S->result)) == NULL) { S 640 ext/pdo_mysql/mysql_statement.c if (S->result->unbuf && !S->result->unbuf->eof_reached && mysql_errno(S->H->server)) { S 642 ext/pdo_mysql/mysql_statement.c if (!S->result->eof && mysql_errno(S->H->server)) { S 649 ext/pdo_mysql/mysql_statement.c S->current_lengths = mysql_fetch_lengths(S->result); S 656 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 661 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 662 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 680 ext/pdo_mysql/mysql_statement.c if (S->H->fetch_table_names) { S 681 ext/pdo_mysql/mysql_statement.c namelen = spprintf(&cols[i].name, 0, "%s.%s", S->fields[i].table, S->fields[i].name); S 684 ext/pdo_mysql/mysql_statement.c namelen = strlen(S->fields[i].name); S 686 ext/pdo_mysql/mysql_statement.c cols[i].name = estrndup(S->fields[i].name, namelen); S 689 ext/pdo_mysql/mysql_statement.c cols[i].precision = S->fields[i].decimals; S 690 ext/pdo_mysql/mysql_statement.c cols[i].maxlen = S->fields[i].length; S 693 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 707 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 710 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 711 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 716 ext/pdo_mysql/mysql_statement.c if (!S->stmt) { S 717 ext/pdo_mysql/mysql_statement.c if (S->current_data == NULL || !S->result) { S 727 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 728 ext/pdo_mysql/mysql_statement.c Z_ADDREF_P(S->stmt->data->result_bind[colno].zv); S 729 ext/pdo_mysql/mysql_statement.c *ptr = (char*)&S->stmt->data->result_bind[colno].zv; S 734 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 735 ext/pdo_mysql/mysql_statement.c if (S->out_null[colno]) { S 740 ext/pdo_mysql/mysql_statement.c *ptr = S->bound_result[colno].buffer; S 741 ext/pdo_mysql/mysql_statement.c if (S->out_length[colno] > S->bound_result[colno].buffer_length) { S 744 ext/pdo_mysql/mysql_statement.c S->out_length[colno] = S->bound_result[colno].buffer_length; S 745 ext/pdo_mysql/mysql_statement.c *len = S->out_length[colno]; S 748 ext/pdo_mysql/mysql_statement.c *len = S->out_length[colno]; S 752 ext/pdo_mysql/mysql_statement.c *ptr = S->current_data[colno]; S 753 ext/pdo_mysql/mysql_statement.c *len = S->current_lengths[colno]; S 808 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 814 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 815 ext/pdo_mysql/mysql_statement.c if (!S->result) { S 827 ext/pdo_mysql/mysql_statement.c F = S->fields + colno; S 878 ext/pdo_mysql/mysql_statement.c pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; S 881 ext/pdo_mysql/mysql_statement.c PDO_DBG_INF_FMT("stmt=%p", S->stmt); S 882 ext/pdo_mysql/mysql_statement.c if (S->result) { S 883 ext/pdo_mysql/mysql_statement.c mysql_free_result(S->result); S 884 ext/pdo_mysql/mysql_statement.c S->result = NULL; S 886 ext/pdo_mysql/mysql_statement.c if (S->stmt) { S 888 ext/pdo_mysql/mysql_statement.c retval = mysql_stmt_free_result(S->stmt); S 892 ext/pdo_mysql/mysql_statement.c while (mysql_more_results(S->H->server)) { S 894 ext/pdo_mysql/mysql_statement.c if (mysql_next_result(S->H->server) != 0) { S 897 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 254 ext/pdo_oci/oci_driver.c pdo_oci_stmt *S = ecalloc(1, sizeof(*S)); S 261 ext/pdo_oci/oci_driver.c S->exec_type = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, S 265 ext/pdo_oci/oci_driver.c S->exec_type = OCI_DEFAULT; S 268 ext/pdo_oci/oci_driver.c S->H = H; S 279 ext/pdo_oci/oci_driver.c efree(S); S 284 ext/pdo_oci/oci_driver.c OCIHandleAlloc(H->env, (dvoid*)&S->stmt, OCI_HTYPE_STMT, 0, NULL); S 287 ext/pdo_oci/oci_driver.c OCIHandleAlloc(H->env, (dvoid*)&S->err, OCI_HTYPE_ERROR, 0, NULL); S 290 ext/pdo_oci/oci_driver.c H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); S 297 ext/pdo_oci/oci_driver.c OCIHandleFree(S->stmt, OCI_HTYPE_STMT); S 298 ext/pdo_oci/oci_driver.c OCIHandleFree(S->err, OCI_HTYPE_ERROR); S 299 ext/pdo_oci/oci_driver.c efree(S); S 307 ext/pdo_oci/oci_driver.c H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, S 311 ext/pdo_oci/oci_driver.c H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, S 316 ext/pdo_oci/oci_driver.c stmt->driver_data = S; S 38 ext/pdo_oci/oci_statement.c S->last_err = name params; \ S 39 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 40 ext/pdo_oci/oci_statement.c if (S->last_err) { \ S 47 ext/pdo_oci/oci_statement.c S->last_err = name params; \ S 48 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 49 ext/pdo_oci/oci_statement.c if (S->last_err) { \ S 58 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 64 ext/pdo_oci/oci_statement.c if (S->stmt) { S 67 ext/pdo_oci/oci_statement.c OCIStmtFetch(S->stmt, S->err, 0, OCI_FETCH_NEXT, OCI_DEFAULT); S 70 ext/pdo_oci/oci_statement.c OCIHandleFree(S->stmt, OCI_HTYPE_STMT); S 71 ext/pdo_oci/oci_statement.c S->stmt = NULL; S 73 ext/pdo_oci/oci_statement.c if (S->err) { S 74 ext/pdo_oci/oci_statement.c OCIHandleFree(S->err, OCI_HTYPE_ERROR); S 75 ext/pdo_oci/oci_statement.c S->err = NULL; S 91 ext/pdo_oci/oci_statement.c if (S->einfo.errmsg) { S 92 ext/pdo_oci/oci_statement.c pefree(S->einfo.errmsg, stmt->dbh->is_persistent); S 93 ext/pdo_oci/oci_statement.c S->einfo.errmsg = NULL; S 96 ext/pdo_oci/oci_statement.c if (S->cols) { S 98 ext/pdo_oci/oci_statement.c if (S->cols[i].data) { S 99 ext/pdo_oci/oci_statement.c switch (S->cols[i].dtype) { S 102 ext/pdo_oci/oci_statement.c OCIDescriptorFree(S->cols[i].data, OCI_DTYPE_LOB); S 105 ext/pdo_oci/oci_statement.c efree(S->cols[i].data); S 109 ext/pdo_oci/oci_statement.c efree(S->cols); S 110 ext/pdo_oci/oci_statement.c S->cols = NULL; S 112 ext/pdo_oci/oci_statement.c efree(S); S 121 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 125 ext/pdo_oci/oci_statement.c if (!S->stmt_type) { S 127 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &S->stmt_type, 0, OCI_ATTR_STMT_TYPE, S->err)); S 132 ext/pdo_oci/oci_statement.c OCIStmtFetch(S->stmt, S->err, 0, OCI_FETCH_NEXT, OCI_DEFAULT); S 136 ext/pdo_oci/oci_statement.c if (S->exec_type == OCI_STMT_SCROLLABLE_READONLY) { S 146 ext/pdo_oci/oci_statement.c STMT_CALL(OCIStmtExecute, (S->H->svc, S->stmt, S->err, S 147 ext/pdo_oci/oci_statement.c (S->stmt_type == OCI_STMT_SELECT && !S->have_blobs) ? 0 : 1, 0, NULL, NULL, S 156 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &colcount, 0, OCI_ATTR_PARAM_COUNT, S->err)); S 160 ext/pdo_oci/oci_statement.c if (S->cols) { S 163 ext/pdo_oci/oci_statement.c if (S->cols[i].data) { S 164 ext/pdo_oci/oci_statement.c switch (S->cols[i].dtype) { S 170 ext/pdo_oci/oci_statement.c efree(S->cols[i].data); S 174 ext/pdo_oci/oci_statement.c efree(S->cols); S 177 ext/pdo_oci/oci_statement.c S->cols = ecalloc(colcount, sizeof(pdo_oci_column)); S 181 ext/pdo_oci/oci_statement.c (S->stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, S->err)); S 263 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 312 ext/pdo_oci/oci_statement.c STMT_CALL(OCIBindByName, (S->stmt, S 313 ext/pdo_oci/oci_statement.c &P->bind, S->err, (text*)param->name, S 318 ext/pdo_oci/oci_statement.c STMT_CALL(OCIBindByPos, (S->stmt, S 319 ext/pdo_oci/oci_statement.c &P->bind, S->err, param->paramno+1, S 326 ext/pdo_oci/oci_statement.c S->err, S 337 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDescriptorAlloc, (S->H->env, &P->thing, OCI_DTYPE_LOB, 0, NULL)); S 338 ext/pdo_oci/oci_statement.c STMT_CALL(OCIAttrSet, (P->thing, OCI_DTYPE_LOB, &empty, 0, OCI_ATTR_LOBEMPTY, S->err)); S 339 ext/pdo_oci/oci_statement.c S->have_blobs = 1; S 377 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 389 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 399 ext/pdo_oci/oci_statement.c OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, S 408 ext/pdo_oci/oci_statement.c OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); S 409 ext/pdo_oci/oci_statement.c OCILobFlushBuffer(S->H->svc, S->err, (OCILobLocator*)P->thing, 0); S 415 ext/pdo_oci/oci_statement.c OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); S 418 ext/pdo_oci/oci_statement.c OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, S 425 ext/pdo_oci/oci_statement.c OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); S 445 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 456 ext/pdo_oci/oci_statement.c S->last_err = OCIStmtFetch2(S->stmt, S->err, 1, ociori, offset, OCI_DEFAULT); S 458 ext/pdo_oci/oci_statement.c S->last_err = OCIStmtFetch(S->stmt, S->err, 1, OCI_FETCH_NEXT, OCI_DEFAULT); S 461 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_NO_DATA) { S 466 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_NEED_DATA) { S 471 ext/pdo_oci/oci_statement.c if (S->last_err == OCI_SUCCESS_WITH_INFO || S->last_err == OCI_SUCCESS) { S 506 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 515 ext/pdo_oci/oci_statement.c STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)¶m, colno+1)); S 519 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, S->err)); S 523 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &data_size, 0, OCI_ATTR_DATA_SIZE, S->err)); S 527 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); S 531 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &precis, 0, OCI_ATTR_PRECISION, S->err)); S 535 ext/pdo_oci/oci_statement.c (param, OCI_DTYPE_PARAM, &colname, &namelen, OCI_ATTR_NAME, S->err)); S 542 ext/pdo_oci/oci_statement.c S->cols[colno].dtype = dtype; S 553 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */ S 554 ext/pdo_oci/oci_statement.c S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); S 561 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL)); S 562 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = sizeof(OCILobLocator*); S 577 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 512; S 580 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = 1024; S 583 ext/pdo_oci/oci_statement.c S->cols[colno].datalen = col->maxlen; S 586 ext/pdo_oci/oci_statement.c S->cols[colno].datalen *= 3; S 588 ext/pdo_oci/oci_statement.c S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); S 595 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, S 596 ext/pdo_oci/oci_statement.c S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, S 597 ext/pdo_oci/oci_statement.c &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); S 600 ext/pdo_oci/oci_statement.c STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], S 609 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S; S 621 ext/pdo_oci/oci_statement.c r = OCILobWrite(self->S->H->svc, self->S->err, self->lob, S 641 ext/pdo_oci/oci_statement.c r = OCILobRead(self->S->H->svc, self->S->err, self->lob, S 662 ext/pdo_oci/oci_statement.c OCILobClose(self->S->H->svc, self->S->err, self->lob); S 673 ext/pdo_oci/oci_statement.c OCILobFlushBuffer(self->S->H->svc, self->S->err, self->lob, 0); S 708 ext/pdo_oci/oci_statement.c self->S = (pdo_oci_stmt*)stmt->driver_data; S 723 ext/pdo_oci/oci_statement.c pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data; S 724 ext/pdo_oci/oci_statement.c pdo_oci_column *C = &S->cols[colno]; S 738 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 156 ext/pdo_odbc/odbc_driver.c S->assume_utf8 = H->assume_utf8; S 169 ext/pdo_odbc/odbc_driver.c efree(S); S 173 ext/pdo_odbc/odbc_driver.c rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); S 176 ext/pdo_odbc/odbc_driver.c efree(S); S 186 ext/pdo_odbc/odbc_driver.c rc = SQLSetStmtAttr(S->stmt, SQL_ATTR_CURSOR_SCROLLABLE, (void*)SQL_SCROLLABLE, 0); S 189 ext/pdo_odbc/odbc_driver.c SQLFreeHandle(SQL_HANDLE_STMT, S->stmt); S 197 ext/pdo_odbc/odbc_driver.c rc = SQLPrepare(S->stmt, (char*)sql, SQL_NTS); S 202 ext/pdo_odbc/odbc_driver.c stmt->driver_data = S; S 209 ext/pdo_odbc/odbc_driver.c strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); S 210 ext/pdo_odbc/odbc_driver.c H->einfo.file = S->einfo.file; S 211 ext/pdo_odbc/odbc_driver.c H->einfo.line = S->einfo.line; S 212 ext/pdo_odbc/odbc_driver.c H->einfo.what = S->einfo.what; S 39 ext/pdo_odbc/odbc_stmt.c static int pdo_odbc_sqltype_is_unicode(pdo_odbc_stmt *S, SWORD sqltype) S 41 ext/pdo_odbc/odbc_stmt.c if (!S->assume_utf8) return 0; S 65 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 76 ext/pdo_odbc/odbc_stmt.c if (S->convbufsize <= ret) { S 77 ext/pdo_odbc/odbc_stmt.c S->convbufsize = ret + sizeof(WCHAR); S 78 ext/pdo_odbc/odbc_stmt.c S->convbuf = erealloc(S->convbuf, S->convbufsize); S 81 ext/pdo_odbc/odbc_stmt.c ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCHAR)); S 100 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 108 ext/pdo_odbc/odbc_stmt.c if (S->convbufsize <= ret) { S 109 ext/pdo_odbc/odbc_stmt.c S->convbufsize = ret + 1; S 110 ext/pdo_odbc/odbc_stmt.c S->convbuf = erealloc(S->convbuf, S->convbufsize); S 113 ext/pdo_odbc/odbc_stmt.c ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsize, NULL, NULL); S 119 ext/pdo_odbc/odbc_stmt.c S->convbuf[*outlen] = '\0'; S 126 ext/pdo_odbc/odbc_stmt.c static void free_cols(pdo_stmt_t *stmt, pdo_odbc_stmt *S TSRMLS_DC) S 128 ext/pdo_odbc/odbc_stmt.c if (S->cols) { S 132 ext/pdo_odbc/odbc_stmt.c if (S->cols[i].data) { S 133 ext/pdo_odbc/odbc_stmt.c efree(S->cols[i].data); S 136 ext/pdo_odbc/odbc_stmt.c efree(S->cols); S 137 ext/pdo_odbc/odbc_stmt.c S->cols = NULL; S 143 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 145 ext/pdo_odbc/odbc_stmt.c if (S->stmt != SQL_NULL_HANDLE) { S 147 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 149 ext/pdo_odbc/odbc_stmt.c SQLFreeHandle(SQL_HANDLE_STMT, S->stmt); S 150 ext/pdo_odbc/odbc_stmt.c S->stmt = SQL_NULL_HANDLE; S 153 ext/pdo_odbc/odbc_stmt.c free_cols(stmt, S TSRMLS_CC); S 154 ext/pdo_odbc/odbc_stmt.c if (S->convbuf) { S 155 ext/pdo_odbc/odbc_stmt.c efree(S->convbuf); S 157 ext/pdo_odbc/odbc_stmt.c efree(S); S 165 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 170 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 173 ext/pdo_odbc/odbc_stmt.c rc = SQLExecute(S->stmt); S 178 ext/pdo_odbc/odbc_stmt.c rc = SQLParamData(S->stmt, (SQLPOINTER*)¶m); S 195 ext/pdo_odbc/odbc_stmt.c SQLPutData(S->stmt, Z_STRVAL_P(param->parameter), S 199 ext/pdo_odbc/odbc_stmt.c SQLPutData(S->stmt, S->convbuf, ulen); S 203 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 219 ext/pdo_odbc/odbc_stmt.c SQLCloseCursor(S->stmt); S 236 ext/pdo_odbc/odbc_stmt.c SQLPutData(S->stmt, buf, len); S 258 ext/pdo_odbc/odbc_stmt.c SQLRowCount(S->stmt, &row_count); S 266 ext/pdo_odbc/odbc_stmt.c SQLNumResultCols(S->stmt, &colcount); S 269 ext/pdo_odbc/odbc_stmt.c S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); S 270 ext/pdo_odbc/odbc_stmt.c S->going_long = 0; S 279 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 316 ext/pdo_odbc/odbc_stmt.c rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable); S 343 ext/pdo_odbc/odbc_stmt.c P->is_unicode = pdo_odbc_sqltype_is_unicode(S, sqltype); S 373 ext/pdo_odbc/odbc_stmt.c rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, S 460 ext/pdo_odbc/odbc_stmt.c memcpy(P->outbuf, S->convbuf, P->len); S 492 ext/pdo_odbc/odbc_stmt.c srcbuf = S->convbuf; S 515 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 528 ext/pdo_odbc/odbc_stmt.c rc = SQLFetchScroll(S->stmt, odbcori, offset); S 550 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 557 ext/pdo_odbc/odbc_stmt.c rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, S 558 ext/pdo_odbc/odbc_stmt.c sizeof(S->cols[colno].colname)-1, &colnamelen, S 559 ext/pdo_odbc/odbc_stmt.c &S->cols[colno].coltype, &colsize, NULL, NULL); S 568 ext/pdo_odbc/odbc_stmt.c rc = SQLColAttribute(S->stmt, colno+1, S 580 ext/pdo_odbc/odbc_stmt.c col->maxlen = S->cols[colno].datalen = colsize; S 582 ext/pdo_odbc/odbc_stmt.c col->name = estrdup(S->cols[colno].colname); S 583 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype); S 591 ext/pdo_odbc/odbc_stmt.c if (colsize < 256 && !S->going_long) { S 592 ext/pdo_odbc/odbc_stmt.c S->cols[colno].data = emalloc(colsize+1); S 593 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_long = 0; S 595 ext/pdo_odbc/odbc_stmt.c rc = SQLBindCol(S->stmt, colno+1, S 596 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_unicode ? SQL_C_BINARY : SQL_C_CHAR, S 597 ext/pdo_odbc/odbc_stmt.c S->cols[colno].data, S 598 ext/pdo_odbc/odbc_stmt.c S->cols[colno].datalen+1, &S->cols[colno].fetched_len); S 607 ext/pdo_odbc/odbc_stmt.c S->cols[colno].data = emalloc(256); S 608 ext/pdo_odbc/odbc_stmt.c S->going_long = 1; S 609 ext/pdo_odbc/odbc_stmt.c S->cols[colno].is_long = 1; S 617 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 618 ext/pdo_odbc/odbc_stmt.c pdo_odbc_column *C = &S->cols[colno]; S 631 ext/pdo_odbc/odbc_stmt.c rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, S 658 ext/pdo_odbc/odbc_stmt.c rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, buf2, 256, &C->fetched_len); S 735 ext/pdo_odbc/odbc_stmt.c memcpy(*ptr, S->convbuf, ulen+1); S 745 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 750 ext/pdo_odbc/odbc_stmt.c rc = SQLSetCursorName(S->stmt, Z_STRVAL_P(val), Z_STRLEN_P(val)); S 759 ext/pdo_odbc/odbc_stmt.c S->assume_utf8 = zval_is_true(val); S 762 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_err_msg, "Unknown Attribute"); S 763 ext/pdo_odbc/odbc_stmt.c S->einfo.what = "setAttribute"; S 764 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_state, "IM001"); S 772 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 779 ext/pdo_odbc/odbc_stmt.c rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); S 790 ext/pdo_odbc/odbc_stmt.c ZVAL_BOOL(val, S->assume_utf8 ? 1 : 0); S 794 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_err_msg, "Unknown Attribute"); S 795 ext/pdo_odbc/odbc_stmt.c S->einfo.what = "getAttribute"; S 796 ext/pdo_odbc/odbc_stmt.c strcpy(S->einfo.last_state, "IM001"); S 805 ext/pdo_odbc/odbc_stmt.c pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; S 810 ext/pdo_odbc/odbc_stmt.c rc = SQLMoreResults(S->stmt); S 816 ext/pdo_odbc/odbc_stmt.c free_cols(stmt, S TSRMLS_CC); S 818 ext/pdo_odbc/odbc_stmt.c SQLNumResultCols(S->stmt, &colcount); S 820 ext/pdo_odbc/odbc_stmt.c S->cols = ecalloc(colcount, sizeof(pdo_odbc_column)); S 821 ext/pdo_odbc/odbc_stmt.c S->going_long = 0; S 216 ext/pdo_pgsql/pgsql_driver.c pdo_pgsql_stmt *S = ecalloc(1, sizeof(pdo_pgsql_stmt)); S 225 ext/pdo_pgsql/pgsql_driver.c S->H = H; S 226 ext/pdo_pgsql/pgsql_driver.c stmt->driver_data = S; S 233 ext/pdo_pgsql/pgsql_driver.c if (S->cursor_name) { S 234 ext/pdo_pgsql/pgsql_driver.c efree(S->cursor_name); S 236 ext/pdo_pgsql/pgsql_driver.c spprintf(&S->cursor_name, 0, "pdo_crsr_%08x", ++H->stmt_counter); S 266 ext/pdo_pgsql/pgsql_driver.c spprintf(&S->stmt_name, 0, "pdo_stmt_%08x", ++H->stmt_counter); S 270 ext/pdo_pgsql/pgsql_driver.c S->query = nsql; S 272 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 132 ext/pdo_pgsql/pgsql_statement.c if (S->cursor_name) { S 135 ext/pdo_pgsql/pgsql_statement.c if (S->is_prepared) { S 136 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "CLOSE %s", S->cursor_name); S 137 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, q); S 141 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "DECLARE %s SCROLL CURSOR WITH HOLD FOR %s", S->cursor_name, stmt->active_query_string); S 142 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, q); S 146 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 148 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result)); S 153 ext/pdo_pgsql/pgsql_statement.c S->is_prepared = 1; S 156 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "FETCH FORWARD 0 FROM %s", S->cursor_name); S 157 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, q); S 161 ext/pdo_pgsql/pgsql_statement.c if (S->stmt_name) { S 164 ext/pdo_pgsql/pgsql_statement.c if (!S->is_prepared) { S 168 ext/pdo_pgsql/pgsql_statement.c S->result = PQprepare(H->server, S->stmt_name, S->query, S 170 ext/pdo_pgsql/pgsql_statement.c S->param_types); S 171 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 176 ext/pdo_pgsql/pgsql_statement.c S->is_prepared = 1; S 177 ext/pdo_pgsql/pgsql_statement.c PQclear(S->result); S 180 ext/pdo_pgsql/pgsql_statement.c char *sqlstate = pdo_pgsql_sqlstate(S->result); S 190 ext/pdo_pgsql/pgsql_statement.c snprintf(buf, sizeof(buf), "DEALLOCATE %s", S->stmt_name); S 203 ext/pdo_pgsql/pgsql_statement.c S->result = PQexecPrepared(H->server, S->stmt_name, S 207 ext/pdo_pgsql/pgsql_statement.c (const char**)S->param_values, S 208 ext/pdo_pgsql/pgsql_statement.c S->param_lengths, S 209 ext/pdo_pgsql/pgsql_statement.c S->param_formats, S 214 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(H->server, stmt->active_query_string); S 216 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 219 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result)); S 224 ext/pdo_pgsql/pgsql_statement.c stmt->column_count = (int) PQnfields(S->result); S 225 ext/pdo_pgsql/pgsql_statement.c S->cols = ecalloc(stmt->column_count, sizeof(pdo_pgsql_column)); S 229 ext/pdo_pgsql/pgsql_statement.c stmt->row_count = (long)atoi(PQcmdTuples(S->result)); S 230 ext/pdo_pgsql/pgsql_statement.c H->pgoid = PQoidValue(S->result); S 232 ext/pdo_pgsql/pgsql_statement.c stmt->row_count = (long)PQntuples(S->result); S 242 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 244 ext/pdo_pgsql/pgsql_statement.c if (S->stmt_name && param->is_param) { S 282 ext/pdo_pgsql/pgsql_statement.c if (!S->param_values) { S 283 ext/pdo_pgsql/pgsql_statement.c S->param_values = ecalloc( S 286 ext/pdo_pgsql/pgsql_statement.c S->param_lengths = ecalloc( S 289 ext/pdo_pgsql/pgsql_statement.c S->param_formats = ecalloc( S 292 ext/pdo_pgsql/pgsql_statement.c S->param_types = ecalloc( S 316 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = (char*)&P->oid; S 317 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = sizeof(P->oid); S 318 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 1; S 319 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = OIDOID; S 342 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = NULL; S 343 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = 0; S 345 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = Z_BVAL_P(param->parameter) ? "t" : "f"; S 346 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = 1; S 347 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 0; S 351 ext/pdo_pgsql/pgsql_statement.c S->param_values[param->paramno] = Z_STRVAL_P(param->parameter); S 352 ext/pdo_pgsql/pgsql_statement.c S->param_lengths[param->paramno] = Z_STRLEN_P(param->parameter); S 353 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 0; S 357 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = 0; S 358 ext/pdo_pgsql/pgsql_statement.c S->param_formats[param->paramno] = 1; S 360 ext/pdo_pgsql/pgsql_statement.c S->param_types[param->paramno] = 0; S 385 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 387 ext/pdo_pgsql/pgsql_statement.c if (S->cursor_name) { S 403 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "FETCH %s FROM %s", ori_str, S->cursor_name); S 405 ext/pdo_pgsql/pgsql_statement.c S->result = PQexec(S->H->server, q); S 407 ext/pdo_pgsql/pgsql_statement.c status = PQresultStatus(S->result); S 410 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_error_stmt(stmt, status, pdo_pgsql_sqlstate(S->result)); S 414 ext/pdo_pgsql/pgsql_statement.c if (PQntuples(S->result)) { S 415 ext/pdo_pgsql/pgsql_statement.c S->current_row = 1; S 421 ext/pdo_pgsql/pgsql_statement.c if (S->current_row < stmt->row_count) { S 422 ext/pdo_pgsql/pgsql_statement.c S->current_row++; S 432 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 436 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 440 ext/pdo_pgsql/pgsql_statement.c cols[colno].name = estrdup(PQfname(S->result, colno)); S 442 ext/pdo_pgsql/pgsql_statement.c cols[colno].maxlen = PQfsize(S->result, colno); S 443 ext/pdo_pgsql/pgsql_statement.c cols[colno].precision = PQfmod(S->result, colno); S 444 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].pgsql_type = PQftype(S->result, colno); S 446 ext/pdo_pgsql/pgsql_statement.c switch(S->cols[colno].pgsql_type) { S 494 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 498 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 503 ext/pdo_pgsql/pgsql_statement.c if (PQgetisnull(S->result, S->current_row - 1, colno)) { /* Check if we got NULL */ S 507 ext/pdo_pgsql/pgsql_statement.c *ptr = PQgetvalue(S->result, S->current_row - 1, colno); S 508 ext/pdo_pgsql/pgsql_statement.c *len = PQgetlength(S->result, S->current_row - 1, colno); S 513 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].intval = atol(*ptr); S 514 ext/pdo_pgsql/pgsql_statement.c *ptr = (char *) &(S->cols[colno].intval); S 519 ext/pdo_pgsql/pgsql_statement.c S->cols[colno].boolval = **ptr == 't' ? 1: 0; S 520 ext/pdo_pgsql/pgsql_statement.c *ptr = (char *) &(S->cols[colno].boolval); S 525 ext/pdo_pgsql/pgsql_statement.c if (S->cols[colno].pgsql_type == OIDOID) { S 529 ext/pdo_pgsql/pgsql_statement.c int loid = lo_open(S->H->server, oid, INV_READ); S 573 ext/pdo_pgsql/pgsql_statement.c pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data; S 578 ext/pdo_pgsql/pgsql_statement.c if (!S->result) { S 587 ext/pdo_pgsql/pgsql_statement.c add_assoc_long(return_value, "pgsql:oid", S->cols[colno].pgsql_type); S 590 ext/pdo_pgsql/pgsql_statement.c spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%u", S->cols[colno].pgsql_type); S 591 ext/pdo_pgsql/pgsql_statement.c res = PQexec(S->H->server, q); S 181 ext/pdo_sqlite/sqlite_driver.c pdo_sqlite_stmt *S = ecalloc(1, sizeof(pdo_sqlite_stmt)); S 185 ext/pdo_sqlite/sqlite_driver.c S->H = H; S 186 ext/pdo_sqlite/sqlite_driver.c stmt->driver_data = S; S 196 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 110 ext/pdo_sqlite/sqlite_statement.c if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { S 116 ext/pdo_sqlite/sqlite_statement.c if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(param->parameter))) { S 120 ext/pdo_sqlite/sqlite_statement.c if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(param->parameter))) { S 142 ext/pdo_sqlite/sqlite_statement.c if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { S 151 ext/pdo_sqlite/sqlite_statement.c if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1, S 163 ext/pdo_sqlite/sqlite_statement.c if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { S 168 ext/pdo_sqlite/sqlite_statement.c if(SQLITE_OK == sqlite3_bind_text(S->stmt, param->paramno + 1, S 190 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 192 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 195 ext/pdo_sqlite/sqlite_statement.c if (S->pre_fetched) { S 196 ext/pdo_sqlite/sqlite_statement.c S->pre_fetched = 0; S 199 ext/pdo_sqlite/sqlite_statement.c if (S->done) { S 202 ext/pdo_sqlite/sqlite_statement.c i = sqlite3_step(S->stmt); S 208 ext/pdo_sqlite/sqlite_statement.c S->done = 1; S 209 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 213 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 222 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 224 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_column_count(S->stmt)) { S 230 ext/pdo_sqlite/sqlite_statement.c stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno)); S 235 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 251 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 252 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 255 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_data_count(S->stmt)) { S 260 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 267 ext/pdo_sqlite/sqlite_statement.c *ptr = (char*)sqlite3_column_blob(S->stmt, colno); S 268 ext/pdo_sqlite/sqlite_statement.c *len = sqlite3_column_bytes(S->stmt, colno); S 272 ext/pdo_sqlite/sqlite_statement.c *ptr = (char*)sqlite3_column_text(S->stmt, colno); S 273 ext/pdo_sqlite/sqlite_statement.c *len = sqlite3_column_bytes(S->stmt, colno); S 280 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 284 ext/pdo_sqlite/sqlite_statement.c if (!S->stmt) { S 287 ext/pdo_sqlite/sqlite_statement.c if(colno >= sqlite3_data_count(S->stmt)) { S 297 ext/pdo_sqlite/sqlite_statement.c switch (sqlite3_column_type(S->stmt, colno)) { S 317 ext/pdo_sqlite/sqlite_statement.c str = sqlite3_column_decltype(S->stmt, colno); S 323 ext/pdo_sqlite/sqlite_statement.c str = sqlite3_column_table_name(S->stmt, colno); S 336 ext/pdo_sqlite/sqlite_statement.c pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; S 337 ext/pdo_sqlite/sqlite_statement.c sqlite3_reset(S->stmt); S 77 ext/standard/crypt_blowfish.c BF_word S[4][0x100]; S 469 ext/standard/crypt_blowfish.c tmp1 = data.ctx.S[3][tmp1]; \ S 470 ext/standard/crypt_blowfish.c tmp2 = data.ctx.S[2][tmp2]; \ S 471 ext/standard/crypt_blowfish.c tmp3 = data.ctx.S[1][tmp3]; \ S 472 ext/standard/crypt_blowfish.c tmp3 += data.ctx.S[0][tmp4]; \ S 480 ext/standard/crypt_blowfish.c (*((BF_word *)(((unsigned char *)S) + (i)))) S 490 ext/standard/crypt_blowfish.c tmp1 = BF_INDEX(data.ctx.S[3], tmp1); \ S 491 ext/standard/crypt_blowfish.c tmp2 = BF_INDEX(data.ctx.S[2], tmp2); \ S 492 ext/standard/crypt_blowfish.c tmp3 = BF_INDEX(data.ctx.S[1], tmp3); \ S 493 ext/standard/crypt_blowfish.c tmp3 += BF_INDEX(data.ctx.S[0], tmp4); \ S 539 ext/standard/crypt_blowfish.c ptr = data.ctx.S[0]; \ S 545 ext/standard/crypt_blowfish.c } while (ptr < &data.ctx.S[3][0xFF]); S 701 ext/standard/crypt_blowfish.c memcpy(data.ctx.S, BF_init_state.S, sizeof(data.ctx.S)); S 712 ext/standard/crypt_blowfish.c ptr = data.ctx.S[0]; S 726 ext/standard/crypt_blowfish.c } while (ptr < &data.ctx.S[3][0xFF]); S 471 ext/standard/dns_win32.c if (pRec->Flags.S.Section == DnsSectionAnswer) { S 478 ext/standard/dns_win32.c if (authns && pRec->Flags.S.Section == DnsSectionAuthority) { S 494 ext/standard/dns_win32.c if (addtl && pRec->Flags.S.Section == DnsSectionAdditional) { S 2847 ext/standard/string.c HASH h = php_strtr_hash(&S(&patterns[i].pat)[j], B) & shift->table_mask; S 2860 ext/standard/string.c HASH hash_a = php_strtr_hash(&S(&pnr_a->pat)[res->m - res->B], res->B) S 2862 ext/standard/string.c hash_b = php_strtr_hash(&S(&pnr_b->pat)[res->m - res->B], res->B) S 2936 ext/standard/string.c S(&patterns[i].pat) = string_key; S 2938 ext/standard/string.c S(&patterns[i].repl) = Z_STRVAL_PP(entry); S 2988 ext/standard/string.c res->prefix[i] = php_strtr_hash(S(&res->patterns[i].pat), Bp); S 3001 ext/standard/string.c HASH h = php_strtr_hash(&S(&res->patterns[i].pat)[res->m - res->B], res->B) S 3041 ext/standard/string.c HASH h = php_strtr_hash(&S(text)[pos + d->m - d->B], d->B) & d->shift->table_mask; S 3048 ext/standard/string.c prefix_h = php_strtr_hash(&S(text)[pos], d->Bp); S 3061 ext/standard/string.c memcmp(S(&pnr->pat), &S(text)[pos], L(&pnr->pat)) != 0) S 3064 ext/standard/string.c smart_str_appendl(&result, &S(text)[nextwpos], pos - nextwpos); S 3065 ext/standard/string.c smart_str_appendl(&result, S(&pnr->repl), L(&pnr->repl)); S 3076 ext/standard/string.c smart_str_appendl(&result, &S(text)[nextwpos], L(text) - nextwpos); S 3096 ext/standard/string.c S(&text) = str; S 1961 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,