Searched refs:row (Results 1 - 23 of 23) sorted by relevance

/PHP_TRUNK/ext/pdo/
H A Dpdo.php28 foreach ($x->query("select NAME, VALUE from test") as $row) {
29 print_r($row);
40 foreach ($x->query("select NAME, VALUE from test", PDO_FETCH_COLUMN, 1) as $row) {
41 debug_zval_dump($row);
52 while ($row = $stmt->fetch()) {
53 echo "name=$row[NAME] value=$row[VALUE]\n";
H A Dpdo_stmt.c260 pdo_row_t *row = ecalloc(1, sizeof(pdo_row_t)); local
261 row->stmt = stmt;
262 zend_object_std_init(&row->std, pdo_row_ce);
263 ZVAL_OBJ(&stmt->lazy_object_ref, &row->std);
264 row->std.handlers = &pdo_row_object_handlers;
266 GC_REFCOUNT(&row->std)--;
1270 Fetches the next row and returns it, or false if there are no more rows */
1297 Fetches the next row and returns it as an object. */
1633 bind a column to a PHP variable. On each row fetch $param will contain the value of the corresponding column. $column is the 1-based offset of the column, or the column name. For portability, don't call this before execute(). */
2487 pdo_row_t *row local
2550 pdo_row_t *row = (pdo_row_t *)Z_OBJ_P(object); local
2596 pdo_row_t *row = (pdo_row_t *)Z_OBJ_P(object); local
2692 pdo_row_t *row = (pdo_row_t *)std; local
2701 pdo_row_t *row = ecalloc(1, sizeof(pdo_row_t)); local
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_wbmp.c133 int col, row, pos; local
151 for (row = 0; row < wbmp->height; row++) {
154 gdImageSetPixel(im, col, row, white);
156 gdImageSetPixel(im, col, row, black);
H A Dwbmp.c153 int row, col, byte, pel, pos; local
206 for (row = 0; row < wbmp->height; row++)
250 int row, col; local
265 for (row = 0; row < wbmp->height; row++)
271 octet |= ((wbmp->bitmap[row * wbmp->width + col] == 1) ? WBMP_WHITE : WBMP_BLACK) << --bitpos;
309 int row, co local
[all...]
H A Dgd_jpeg.c170 volatile JSAMPROW row = 0; local
183 if (row) {
184 gdFree (row);
209 row = (JSAMPROW) safe_emalloc(cinfo.image_width * cinfo.input_components, sizeof(JSAMPLE), 0);
210 memset(row, 0, cinfo.image_width * cinfo.input_components * sizeof(JSAMPLE));
211 rowptr[0] = row;
232 row[jidx++] = gdTrueColorGetRed (val);
233 row[jidx++] = gdTrueColorGetGreen (val);
234 row[jidx++] = gdTrueColorGetBlue (val);
252 row[jid
326 volatile JSAMPROW row = 0; local
[all...]
H A Dgd_topal.c231 * of a true 3-D array, we use a row of pointers to 2-D arrays. Each
234 * on 80x86 machines, the pointer row is in near memory but the actual
276 * We can get away with a single array (holding one row's worth of errors)
277 * by using it to store the current row's errors at pixel columns not yet
278 * processed, but the next row's errors at columns already processed. We
322 boolean on_odd_row; /* flag to remember which row we are on */
355 int row; local
364 for (row = 0; row < num_rows; row
1303 int row; local
1383 int row; local
[all...]
H A Dgdft.c77 * Line separation will be rounded up to next pixel row.
629 int x, y, row, col, pc, pcr; local
639 for (row = 0; row < bitmap.rows; row++) {
640 pc = row * bitmap.pitch;
642 y = pen_y + row;
694 for (row = 0; row < bitmap.rows; row
[all...]
H A Dgd_interpolation.c965 static inline void _gdScaleRow(gdImagePtr pSrc, unsigned int src_width, gdImagePtr dst, unsigned int dst_width, unsigned int row, LineContribType *contrib) argument
967 int *p_src_row = pSrc->tpixels[row];
968 int *p_dst_row = dst->tpixels[row];
1006 /* Scale each row */
1021 int *row = pRes->tpixels[y]; local
/PHP_TRUNK/ext/pdo_mysql/tests/
H A Dmysql_pdo_test.inc145 foreach ($db->query("show variables like 'have%'") as $row) {
146 if (!empty($row) && $row[1] == 'YES' && ($row[0] == 'have_innodb' || $row[0] == 'have_bdb')) {
147 return str_replace("have_", "", $row[0]);
151 foreach ($db->query("SHOW ENGINES") as $row) {
152 if (isset($row['engine']) && isset($row['support'])) {
153 if ('InnoDB' == $row['engin
[all...]
/PHP_TRUNK/ext/mysqli/tests/
H A Dlocal_infile_tools.inc14 $row = mysqli_fetch_assoc($res);
16 if ('ON' != $row['Value'])
17 return sprintf("Server variable 'local_infile' seems not set to 'ON', found '%s'", $row['Value']);
H A Dconnect.inc134 ($row = $res->fetch_row()) &&
135 !empty($row)) {
136 if ($row[1] == "DISABLED" || $row[1] == "NO") {
143 while ($row = $res->fetch_assoc()) {
144 if (!isset($row['Engine']) || !isset($row['Support']))
147 if (('InnoDB' == $row['Engine']) &&
148 (('YES' == $row['Support']) || ('DEFAULT' == $row['Suppor
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_priv.h155 typedef void (*ps_field_fetch_func)(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row);
192 void ps_fetch_from_1_to_8_bytes(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row, unsigned int byte_count);
H A Dmysqlnd_ps_codec.c59 zend_uchar ** row, unsigned int byte_count)
70 case 8:uval = is_bit? (uint64_t) bit_uint8korr(*row):(uint64_t) uint8korr(*row);break;
71 case 7:uval = bit_uint7korr(*row);break;
72 case 6:uval = bit_uint6korr(*row);break;
73 case 5:uval = bit_uint5korr(*row);break;
74 case 4:uval = is_bit? (uint64_t) bit_uint4korr(*row):(uint64_t) uint4korr(*row);break;
75 case 3:uval = is_bit? (uint64_t) bit_uint3korr(*row):(uint64_t) uint3korr(*row);brea
58 ps_fetch_from_1_to_8_bytes(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row, unsigned int byte_count) argument
131 ps_fetch_null(zval *zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
140 ps_fetch_int8(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
149 ps_fetch_int16(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
158 ps_fetch_int32(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
167 ps_fetch_int64(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
176 ps_fetch_float(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
199 ps_fetch_double(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
214 ps_fetch_time(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
257 ps_fetch_date(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
294 ps_fetch_datetime(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
338 ps_fetch_string(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
358 ps_fetch_bit(zval * zv, const MYSQLND_FIELD * const field, unsigned int pack_len, zend_uchar ** row) argument
[all...]
H A Dmysqlnd_result.c161 /* Free last row's zvals */
166 DBG_INF("Freeing last row buffer");
218 int64_t row; local
220 for (row = set->row_count - 1; row >= 0; row--) {
221 zval *current_row = data + row * field_count;
254 int64_t row; local
257 DBG_INF_FMT("Freeing "MYSQLND_LLU_SPEC" row(s)", set->row_count);
265 for (row
682 MYSQLND_ROW_C *row = (MYSQLND_ROW_C *) param; local
801 zval *row = (zval *) param; local
970 MYSQLND_ROW_C * row = (MYSQLND_ROW_C *) param; local
1062 zval * row = (zval *) param; local
1149 zval * row = (zval *) param; local
1778 zval row; local
1814 zval row; local
[all...]
H A Dmysqlnd_structs.h634 typedef enum_func_status (*func_mysqlnd_res__seek_data)(MYSQLND_RES * const result, const uint64_t row);
711 typedef enum_func_status (*func_mysqlnd_result_buffered__data_seek)(MYSQLND_RES_BUFFERED * const result, const uint64_t row);
757 typedef enum_func_status (*func_mysqlnd_stmt__seek_data)(const MYSQLND_STMT * const stmt, uint64_t row);
1023 /* Column lengths of current row - both buffered and unbuffered. For buffered results it duplicates the data found in **data */ \
1061 zend_uchar *initialized; /* every row is a single bit */
1076 Column lengths of current row - both buffered and unbuffered.
H A Dmysqlnd_ps.c120 /* Position at the first row */
571 This is a single-row result set, a result set with no rows, EXPLAIN,
836 DBG_INF("row fetched");
879 /* Let the row packet fill our buffer and skip additional malloc + memcpy */
1058 int4store(buf + STMT_ID_LENGTH, 1); /* for now fetch only one row */
1132 /* We asked for one row, the next one should be EOF, eat it */
1791 MYSQLND_METHOD(mysqlnd_stmt, data_seek)(const MYSQLND_STMT * const s, uint64_t row)
1794 return stmt && stmt->result? stmt->result->m.seek_data(stmt->result, row) : FAIL;
H A Dmysqlnd.h124 #define mysqlnd_data_seek(result, row) (result)->m.seek_data((result), (row))
226 #define mysqlnd_stmt_data_seek(stmt, row) (stmt)->m->seek_data((stmt), (row))
/PHP_TRUNK/ext/odbc/
H A Dbirdstep.c432 UDWORD row; local
441 stat = SQLExtendedFetch(res->hstmt,SQL_FETCH_NEXT,1,&row,RowStat);
467 UDWORD row; local
502 stat = SQLExtendedFetch(res->hstmt,SQL_FETCH_NEXT,1,&row,RowStat);
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_warning.c77 MYSQL_ROW row; local
85 while ((row = mysql_fetch_row(result))) {
86 w = php_new_warning(row[2], atoi(row[1]));
124 zval row; local
136 mysqlnd_fetch_into(result, MYSQLND_FETCH_NUM, &row, MYSQLND_MYSQLI);
137 if (Z_TYPE(row) != IS_ARRAY) {
138 zval_ptr_dtor(&row);
141 zend_hash_internal_pointer_reset(Z_ARRVAL(row));
143 zend_hash_move_forward(Z_ARRVAL(row));
[all...]
H A Dmysqli.c1150 MYSQL_ROW row; local
1155 if (!(row = mysql_fetch_row(result))) {
1167 if (row[i]) {
1175 case 8:llval = (my_ulonglong) bit_uint8korr(row[i]);break;
1176 case 7:llval = (my_ulonglong) bit_uint7korr(row[i]);break;
1177 case 6:llval = (my_ulonglong) bit_uint6korr(row[i]);break;
1178 case 5:llval = (my_ulonglong) bit_uint5korr(row[i]);break;
1179 case 4:llval = (my_ulonglong) bit_uint4korr(row[i]);break;
1180 case 3:llval = (my_ulonglong) bit_uint3korr(row[i]);break;
1181 case 2:llval = (my_ulonglong) bit_uint2korr(row[
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dphp_pgsql.h294 int row; member in struct:_php_pgsql_result_handle
H A Dpgsql.c254 ZEND_ARG_INFO(0, row)
260 ZEND_ARG_INFO(0, row)
265 ZEND_ARG_INFO(0, row)
271 ZEND_ARG_INFO(0, row)
293 ZEND_ARG_INFO(0, row)
299 ZEND_ARG_INFO(0, row)
1889 pg_result->row = 0;
2024 pg_result->row = 0;
2108 pg_result->row = 0;
2228 pg_result->row
2612 zend_long row; local
2682 zend_long row = -1; local
2948 zend_long row; local
2977 zend_long row; local
7009 zval row; local
[all...]
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c1310 Tell whether a field in the current row is NULL */
1374 Prepare a new row of data for reading */
1379 ub4 nrows = 1; /* only one row at a time is supported for now */
1395 Fetch a row of result data into an array */
1438 zval row; local
1440 array_init(&row);
1446 zend_hash_next_index_insert(Z_ARRVAL(row), &element);
1450 zend_symtable_update(Z_ARRVAL(row), zvtmp, &element);
1455 zend_hash_next_index_insert(Z_ARRVAL_P(array), &row); local
1511 Fetch a result row a
[all...]

Completed in 81 milliseconds