Searched refs:fields (Results 1 - 24 of 24) sorted by relevance

/PHP_TRUNK/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c409 const char *fields[16]; local
417 if (field >= sizeof(fields) / sizeof(*fields)) {
418 fprintf(stderr, "Too many fields (incorrect file?)\n");
449 fields[field++] = q;
462 cp_932 = strtol(fields[0], NULL, 0);
464 fprintf(stderr, "Malformed field value: %s\n", fields[0]);
468 cp_uni = strtol(fields[1], NULL, 0);
470 fprintf(stderr, "Malformed field value: %s\n", fields[1]);
/PHP_TRUNK/ext/imap/tests/
H A Dimap_include.inc15 // list of fields to expect
30 * Display all fields in an element from an imap_fetch_overview() response
38 function displayOverviewFields($resp, $fields=null) {
42 foreach ($fields ? $fields : $mandatory_overview_fields as $mf)
/PHP_TRUNK/ext/standard/tests/file/
H A Dfile.inc572 function compare_stats( array $stat1, array $stat2, array $fields,
583 $fields = contains the key of the elements that needs to be compared.
593 function compare_stats($stat1, $stat2, $fields, $op = "==", $flag = false ) {
603 for($index = 0; $index < count($fields); $index++)
608 if ( $stat1[ $fields[$index] ] != $stat2[ $fields[$index] ] ) {
610 echo "Error: stat1 do not match with stat2 at key value: $fields[$index]\n";
615 if ( $stat1[ $fields[$index] ] != $stat2[ $fields[$index] ] ) {
619 echo "Error: stat1 equals stat2 at key value: $fields[
[all...]
/PHP_TRUNK/ext/ereg/regex/
H A Dsplit.c5 - split - divide a string into fields, like awk split()
6 = int split(char *string, char *fields[], int nfields, char *sep);
8 int /* number of fields, including overflow */
9 split(string, fields, nfields, sep)
11 char *fields[]; /* list is not NULL-terminated */
12 int nfields; /* number of entries available in fields[] */
20 register char **fp = fields;
53 /* we have overflowed the fields vector -- just count them */
83 /* we have overflowed the fields vector -- just count them */
158 char *fields[MN local
187 char *fields[NF]; local
281 char *fields[RNF+1]; local
[all...]
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.h189 mssql_field *fields; member in struct:mssql_result
H A Dphp_mssql.c331 if (free_fields && result->fields) {
333 zend_string_free(result->fields[i].name);
334 zend_string_free(result->fields[i].column_source);
336 efree(result->fields);
1222 result->fields[i].name = estrdup(fname);
1229 result->fields[i].name = estrdup(computed_buf);
1232 result->fields[i].max_length = dbcollen(mssql_ptr->link,i+1);
1235 result->fields[i].column_source = estrdup(source);
1238 result->fields[i].column_source = STR_EMPTY_ALLOC();
1241 result->fields[
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli.c1157 MYSQL_FIELD *fields; local
1165 fields = mysql_fetch_fields(result);
1218 add_assoc_zval(return_value, fields[i].name, &res);
1225 add_assoc_null(return_value, fields[i].name);
H A Dmysqli_api.c413 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING;
452 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0;
466 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0;
499 if (stmt->stmt->fields[ofs].max_length == 0 &&
505 different lengths and you will see that we get different lengths in stmt->stmt->fields[ofs].length
509 (stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256: 256;
516 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[of
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_ps.c764 meta->fields,
774 NULL fields are 0 length, 0 is not more than 0
780 if (meta->fields[i].max_length < len) {
781 meta->fields[i].max_length = len;
878 result->unbuf->last_row_data = row_packet->fields;
880 row_packet->fields = NULL;
908 (meta->fields[i].max_length < (zend_ulong) Z_STRLEN_P(data))) {
909 meta->fields[i].max_length = Z_STRLEN_P(data);
1061 result->unbuf->last_row_data = row_packet->fields;
1063 row_packet->fields
[all...]
H A Dmysqlnd_result.c59 meta->fields,
69 NULL fields are 0 length, 0 is not more than 0
75 if (meta->fields[i].max_length < len) {
76 meta->fields[i].max_length = len;
114 rc = result->m.row_decoder(result->row_buffers[i], current_row, field_count, meta->fields, int_and_float_native, stats TSRMLS_CC);
124 NULL fields are 0 length, 0 is not more than 0
130 if (meta->fields[i].max_length < len) {
131 meta->fields[i].max_length = len;
378 /* 1. Read all fields metadata */
711 result->unbuf->last_row_data = row_packet->fields;
[all...]
H A Dmysqlnd_result_meta.c69 if (meta->fields[i].root) {
71 mnd_pefree(meta->fields[i].root, meta->persistent);
72 meta->fields[i].root = NULL;
75 field_packet->metadata = &(meta->fields[i]);
92 if (mysqlnd_ps_fetch_functions[meta->fields[i].type].func == NULL) {
94 meta->fields[i].type);
98 meta->fields[i].type);
102 if (meta->fields[i].type == MYSQL_TYPE_BIT) {
107 field_len = meta->fields[i].length / 8;
112 if (meta->fields[
154 MYSQLND_FIELD *fields; local
[all...]
H A Dmysqlnd_wireprotocol.c982 DBG_INF_FMT("EOF packet: fields=%u status=%u warnings=%u",
1515 php_mysqlnd_rowp_read_binary_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields, argument
1526 if (!fields) {
1530 end_field = (start_field = fields) + field_count;
1605 php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields, argument
1617 if (!fields) {
1621 end_field = (start_field = fields) + field_count;
1718 BIT fields are specially handled. As they come as bit mask, we have
1757 php_mysqlnd_rowp_read_text_protocol_zval(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields, argument
1763 ret = php_mysqlnd_rowp_read_text_protocol_aux(row_buffer, fields, field_coun
1771 php_mysqlnd_rowp_read_text_protocol_c(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields, unsigned int field_count, const MYSQLND_FIELD * fields_metadata, zend_bool as_int_or_float, MYSQLND_STATS * stats TSRMLS_DC) argument
[all...]
H A Dmysqlnd_wireprotocol.h221 zval *fields; member in struct:st_mysqlnd_packet_row
309 enum_func_status php_mysqlnd_rowp_read_binary_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields,
314 enum_func_status php_mysqlnd_rowp_read_text_protocol_zval(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields,
318 enum_func_status php_mysqlnd_rowp_read_text_protocol_c(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields,
H A Dmysqlnd_structs.h620 typedef enum_func_status (*func_mysqlnd_res__row_decoder)(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval * fields,
995 MYSQLND_FIELD *fields; member in struct:st_mysqlnd_result_metadata
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_statement.c151 S->fields = mysql_fetch_fields(S->result);
189 S->fields = mysql_fetch_fields(S->result);
207 if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) {
212 switch (S->fields[i].type) {
230 S->fields[i].max_length? S->fields[i].max_length:
231 S->fields[i].length;
242 if (S->fields[i].max_length == 0 && S->bound_result[i].buffer_length < 128 && MYSQL_TYPE_VAR_STRING) {
300 S->fields = mysql_fetch_fields(S->result);
387 S->fields
[all...]
H A Dphp_pdo_mysql_int.h122 const MYSQL_FIELD *fields; member in struct:__anon166
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c282 if (result->fields) {
284 zend_string_free(result->fields[i].name);
285 zend_string_free(result->fields[i].column_source);
287 efree(result->fields);
1255 * for NULL fields in some version in conjunction with ASE 12.5
1314 result->fields = NULL;
1390 result->fields = (sybase_field *) safe_emalloc(sizeof(sybase_field), num_fields, 0);
1396 result->fields[i].name = estrndup(result->datafmt[i].name, result->datafmt[i].namelen);
1403 result->fields[i].name = estrdup(computed_buf);
1406 result->fields[
[all...]
H A Dphp_sybase_ct.h100 sybase_field *fields; member in struct:__anon267
/PHP_TRUNK/sapi/cli/
H A Dgenerate_mime_type_map.php20 $fields = preg_split('/\s+/', $line); variable
21 if (count($fields) > 1) {
22 $mime = array_shift($fields);
23 foreach ($fields as $extension) {
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c567 ZEND_ARG_INFO(0, fields)
2287 Return the number of fields in the result */
6791 /* {{{ proto mixed pg_update(resource db, string table, array fields, array ids[, int options])
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c2622 /* {{{ proto int SplFileObject::fputcsv(array fields, [string delimiter [, string enclosure]])
2631 zval *fields = NULL; local
2633 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|ss", &fields, &delim, &d_len, &enclo, &e_len) == SUCCESS) {
2654 ret = php_fputcsv(intern->u.file.stream, fields, delimiter, enclosure, escape TSRMLS_CC);
3008 ZEND_ARG_INFO(0, fields)
/PHP_TRUNK/ext/standard/
H A Dfile.h85 PHPAPI size_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC);
H A Dbasic_functions.c1194 ZEND_ARG_INFO(0, fields) /* ARRAY_INFO(0, fields, 1) */
H A Dfile.c1846 /* {{{ proto int fputcsv(resource fp, array fields [, string delimiter [, string enclosure [, string escape_char]]])
1854 zval *fp = NULL, *fields = NULL; local
1860 &fp, &fields, &delimiter_str, &delimiter_str_len,
1903 ret = php_fputcsv(stream, fields, delimiter, enclosure, escape_char TSRMLS_CC);
1908 /* {{{ PHPAPI size_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC) */
1909 PHPAPI size_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC) argument
1916 count = zend_hash_num_elements(Z_ARRVAL_P(fields));
1917 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(fields), field_tmp) {
1968 Get line from file pointer and parse for CSV fields */
2076 /* Now into new section that parses buf for delimiter/enclosure fields */
[all...]

Completed in 58 milliseconds