Home
last modified time | relevance | path

Searched refs:len (Results 226 – 250 of 496) sorted by path

12345678910>>...20

/PHP-5.5/ext/pdo_dblib/
H A Ddblib_stmt.c216 unsigned long *len, int *caller_frees TSRMLS_DC) in pdo_dblib_stmt_get_col() argument
228 *len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
231 if (*len == 0 && *ptr == NULL) { in pdo_dblib_stmt_get_col()
243 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
244 memcpy(tmp_ptr, *ptr, *len); in pdo_dblib_stmt_get_col()
245 tmp_ptr[*len] = '\0'; in pdo_dblib_stmt_get_col()
258 *len = 36+1; in pdo_dblib_stmt_get_col()
259 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
262 *len = dbconvert(NULL, SQLUNIQUE, *ptr, *len, SQLCHAR, tmp_ptr, *len); in pdo_dblib_stmt_get_col()
263 php_strtoupper(tmp_ptr, *len); in pdo_dblib_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo_dblib/tests/
H A Dbug_45876.phpt31 ["len"]=>
/PHP-5.5/ext/pdo_firebird/
H A Dfirebird_driver.c257 short len = (short)isc_vax_integer(&result[i+1],2); in firebird_handle_doer() local
259 ret += isc_vax_integer(&result[i+3],len); in firebird_handle_doer()
261 i += len+3; in firebird_handle_doer()
H A Dfirebird_statement.c128 i += len + 3; in firebird_stmt_execute()
216 emalloc((len) ? (len * sizeof(type)) : ((*(unsigned long*)lenvar) = sizeof(type))))
230 int result = *len = 0; in firebird_fetch_blob()
265 if (*len) { in firebird_fetch_blob()
275 : (unsigned short)(*len-cur_len); in firebird_fetch_blob()
280 (*ptr)[*len++] = '\0'; in firebird_fetch_blob()
307 *len = 0; in firebird_stmt_get_col()
358 *len = *(short*)var->sqldata; in firebird_stmt_get_col()
362 *len = var->sqllen; in firebird_stmt_get_col()
397 *len = 80; in firebird_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo_mysql/
H A Dmysql_driver.c291 static char *pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) in pdo_mysql_last_insert_id()
296 *len = strlen(id); in pdo_mysql_last_insert_id()
H A Dmysql_statement.c705 static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int … argument
730 *len = sizeof(zval);
737 *len = 0;
745 *len = S->out_length[colno];
748 *len = S->out_length[colno];
753 *len = S->current_lengths[colno];
/PHP-5.5/ext/pdo_mysql/tests/
H A Dbug_33689.phpt62 [len] => 11
H A Dpdo_mysql_stmt_getcolumnmeta.phpt96 $elements = array('flags', 'table', 'name', 'len', 'precision', 'pdo_type');
/PHP-5.5/ext/pdo_oci/
H A Doci_statement.c721 static int oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *calle… in oci_stmt_get_col() argument
730 *len = 0; in oci_stmt_get_col()
740 *len = 0; in oci_stmt_get_col()
745 *len = C->fetched_len; in oci_stmt_get_col()
752 *len = C->fetched_len; in oci_stmt_get_col()
/PHP-5.5/ext/pdo_odbc/
H A Dodbc_stmt.c181 int len; in odbc_stmt_execute() local
233 if (len == 0) { in odbc_stmt_execute()
362 P->len *= 2; in odbc_stmt_param_hook()
378 P->len, in odbc_stmt_param_hook()
379 &P->len in odbc_stmt_param_hook()
421 P->len += len; in odbc_stmt_param_hook()
686 *len = used; in odbc_stmt_get_col()
695 *len = 0; in odbc_stmt_get_col()
704 *len = 0; in odbc_stmt_get_col()
717 *len = 0; in odbc_stmt_get_col()
[all …]
H A Dphp_pdo_odbc_int.h160 SQLLEN len; member
/PHP-5.5/ext/pdo_odbc/tests/
H A Dlong_columns.phpt63 function alpha_repeat($len) {
66 while (strlen($out) < $len) {
69 return substr($out, 0, $len);
/PHP-5.5/ext/pdo_pgsql/
H A Dpgsql_driver.c66 int len; in _pdo_pgsql_escape_credentials() local
69 return php_addcslashes(str, strlen(str), &len, 0, "\\'", sizeof("\\'") TSRMLS_CC); in _pdo_pgsql_escape_credentials()
357 static char *pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) in pdo_pgsql_last_insert_id()
366 *len = spprintf(&id, 0, "%ld", (long) H->pgoid); in pdo_pgsql_last_insert_id()
377 *len = PQgetlength(res, 0, 0); in pdo_pgsql_last_insert_id()
H A Dpgsql_statement.c322 int len; in pgsql_stmt_param_hook() local
328 Z_STRLEN_P(param->parameter) = len; in pgsql_stmt_param_hook()
506 *len = 0; in pgsql_stmt_get_col()
509 *len = PQgetlength(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col()
516 *len = sizeof(long); in pgsql_stmt_get_col()
522 *len = sizeof(zend_bool); in pgsql_stmt_get_col()
533 *len = 0; in pgsql_stmt_get_col()
537 *len = 0; in pgsql_stmt_get_col()
543 *len = 0; in pgsql_stmt_get_col()
550 *len = 0; in pgsql_stmt_get_col()
[all …]
/PHP-5.5/ext/pdo_sqlite/
H A Dsqlite_driver.c222 static char *pdo_sqlite_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_D… in pdo_sqlite_last_insert_id()
228 *len = strlen(id); in pdo_sqlite_last_insert_id()
H A Dsqlite_statement.c249 static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int… in pdo_sqlite_stmt_get_col() argument
263 *len = 0; in pdo_sqlite_stmt_get_col()
268 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
273 *len = sqlite3_column_bytes(S->stmt, colno); in pdo_sqlite_stmt_get_col()
/PHP-5.5/ext/pgsql/
H A Dpgsql.c860 if (len) {
861 *len = i;
1028 if (len <= 2) { in _php_pgsql_detect_identifier_escape()
1644 int len; local
2265 str.len = 0;
3370 long len; local
3382 buf_len = len;
3404 int len; local
3421 len = z_len;
4664 int len; local
[all …]
H A Dphp_pgsql.h277 size_t len; member
/PHP-5.5/ext/pgsql/tests/
H A D11pg_meta_data.phpt25 ["len"]=>
40 ["len"]=>
55 ["len"]=>
H A Dpg_meta_data_001.phpt36 ["len"]=>
51 ["len"]=>
68 ["len"]=>
83 ["len"]=>
/PHP-5.5/ext/phar/
H A Dfunc_interceptors.c101 int len; in PHAR_FUNC() local
205 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { in PHAR_FUNC()
209 contents = php_addslashes(contents, len, &newlen, 1 TSRMLS_CC); /* 1 = free source string */ in PHAR_FUNC()
210 len = newlen; in PHAR_FUNC()
213 RETVAL_STRINGL(contents, len, 0); in PHAR_FUNC()
214 } else if (len == 0) { in PHAR_FUNC()
H A Dphar.c657 php_uint32 len; local
1026 if(!len) {
1037 buffer += len;
1122 buffer += len;
2084 (len >= 2 && !php_check_dots(element, len))
2476 while (len--) {
2524 if (!len) {
2525 len = &dummy;
2639 if (len < 0) {
2654 len = -len;
[all …]
H A Dphar_internal.h477 int len; member
524 …ar_stream_copy_to_stream(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (dest), (max… argument
596 char *phar_create_default_stub(const char *index_php, const char *web_index, size_t *len, char **er…
622 int phar_tar_flush(phar_archive_data *phar, char *user_stub, long len, int defaultstub, char **erro…
627 int phar_zip_flush(phar_archive_data *archive, char *user_stub, long len, int defaultstub, char **e…
644 int phar_flush(phar_archive_data *archive, char *user_stub, long len, int convert, char **error TSR…
660 phar_path_check_result phar_path_check(char **p, int *len, const char **error);
H A Dphar_object.c2881 long len = -1; in PHP_METHOD() local
2904 if (len > 0) { in PHP_METHOD()
2905 len = -len; in PHP_METHOD()
2907 len = -1; in PHP_METHOD()
3902 size_t len; in PHP_METHOD() local
3971 if (len != php_stream_read(fp, buf, len)) { in PHP_METHOD()
3990 buf[len] = '\0'; in PHP_METHOD()
3991 RETURN_STRINGL(buf, len, 0); in PHP_METHOD()
4115 int len; in phar_extract_file() local
4166 if (len >= MAXPATHLEN) { in phar_extract_file()
[all …]
H A Dphar_path_check.c25 phar_path_check_result phar_path_check(char **s, int *len, const char **error) in phar_path_check() argument
30 if (*len == 1 && *p == '.') { in phar_path_check()
33 } else if (*len == 2 && p[0] == '.' && p[1] == '.') { in phar_path_check()
40 #define YYLIMIT p+*len in phar_path_check()
138 *len = (p - (const unsigned char*)*s) -1; in phar_path_check()
205 (*len)--; in phar_path_check()
207 if ((p - (const unsigned char*)*s) - 1 != *len) in phar_path_check()

Completed in 89 milliseconds

12345678910>>...20