Home
last modified time | relevance | path

Searched refs:tmp_len (Results 1 – 12 of 12) sorted by relevance

/PHP-8.0/win32/
H A Dcodepage.c37 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
45 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_to_w_int()
47 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
59 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
60 if (tmp_len == 0) { in php_win32_cp_to_w_int()
66 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int()
213 int target_len, tmp_len; in php_win32_cp_from_w_int() local
222 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_from_w_int()
410 size_t tmp_len = wcslen(tmp) + 1; in php_win32_cp_env_any_to_w() local
411 memmove(ew + bin_len, tmp, tmp_len * sizeof(wchar_t)); in php_win32_cp_env_any_to_w()
[all …]
H A Dioutil.c488 DWORD tmp_len = (DWORD)len; in php_win32_ioutil_getcwd_w() local
492 tmp_len = GetCurrentDirectoryW(0, NULL) + 1; in php_win32_ioutil_getcwd_w()
493 if (!tmp_len) { in php_win32_ioutil_getcwd_w()
497 } else if (tmp_len > len) { in php_win32_ioutil_getcwd_w()
502 tmp_buf = (wchar_t *)malloc((tmp_len)*sizeof(wchar_t)); in php_win32_ioutil_getcwd_w()
510 if (!GetCurrentDirectoryW(tmp_len, buf)) { in php_win32_ioutil_getcwd_w()
/PHP-8.0/ext/standard/
H A Dftp_fopen_wrapper.c611 size_t tmp_len; in php_ftp_dirstream_read() local
624 if (!php_stream_get_line(innerstream, ent->d_name, sizeof(ent->d_name), &tmp_len)) { in php_ftp_dirstream_read()
628 basename = php_basename(ent->d_name, tmp_len, NULL, 0); in php_ftp_dirstream_read()
630 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1); in php_ftp_dirstream_read()
631 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len); in php_ftp_dirstream_read()
632 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read()
636 while (tmp_len > 0 && in php_ftp_dirstream_read()
637 (ent->d_name[tmp_len - 1] == '\n' || ent->d_name[tmp_len - 1] == '\r' || in php_ftp_dirstream_read()
638 ent->d_name[tmp_len - 1] == '\t' || ent->d_name[tmp_len - 1] == ' ')) { in php_ftp_dirstream_read()
639 ent->d_name[--tmp_len] = '\0'; in php_ftp_dirstream_read()
H A Dstring.c2228 zval *tmp_str = NULL, *tmp_repl, *tmp_from = NULL, *tmp_len= NULL; local
2373 tmp_len = &len_ht->arData[len_idx].val;
2374 if (Z_TYPE_P(tmp_len) != IS_UNDEF) {
2380 l = zval_get_long(tmp_len);
/PHP-8.0/ext/phar/
H A Dphar_internal.h510 size_t tmp_len; in phar_set_inode() local
513 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
515 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
520 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
523 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
H A Dphar.c747 uint32_t manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags; in phar_parse_pharfile() local
1051 SAFE_PHAR_GET_32(buffer, endbuffer, tmp_len); in phar_parse_pharfile()
1053 if (buffer + tmp_len > endbuffer) { in phar_parse_pharfile()
1057 if (manifest_len < MANIFEST_FIXED_LEN + tmp_len) { in phar_parse_pharfile()
1062 if (tmp_len) { in phar_parse_pharfile()
1064 if (alias && alias_len && (alias_len != tmp_len || strncmp(alias, buffer, tmp_len))) in phar_parse_pharfile()
1073 … \"%s\" with implicit alias \"%.*s\" under different alias \"%s\"", fname, tmp_len, buffer, alias); in phar_parse_pharfile()
1080 alias_len = tmp_len; in phar_parse_pharfile()
1082 buffer += tmp_len; in phar_parse_pharfile()
1095 if (manifest_count > ((manifest_len - MANIFEST_FIXED_LEN - tmp_len) / (5 * 4 + 1))) { in phar_parse_pharfile()
H A Dphar_object.c3406 size_t tmp_len = 0; in PHP_METHOD() local
3448 tmp_len = newfile_len; in PHP_METHOD()
3449 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD()
3454 newfile_len = tmp_len; in PHP_METHOD()
/PHP-8.0/ext/pdo_pgsql/
H A Dpgsql_statement.c537 size_t tmp_len; in pgsql_stmt_get_col() local
580 char *tmp_ptr = (char *)PQunescapeBytea((unsigned char *)*ptr, &tmp_len); in pgsql_stmt_get_col()
586 if (!tmp_len) { in pgsql_stmt_get_col()
592 *ptr = estrndup(tmp_ptr, tmp_len); in pgsql_stmt_get_col()
594 *len = tmp_len; in pgsql_stmt_get_col()
H A Dpgsql_driver.c356 size_t tmp_len; in pgsql_handle_quoter() local
361 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter()
362 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c59 size_t tmp_len = 0; in ps_fetch_from_1_to_8_bytes() local
80 tmp_len = sprintf((char *)&tmp, "%" PRIu64, uval); in ps_fetch_from_1_to_8_bytes()
88 tmp_len = sprintf((char *)&tmp, "%" PRIu64, uval); in ps_fetch_from_1_to_8_bytes()
110 tmp_len = sprintf((char *)&tmp, "%" PRIi64, lval); in ps_fetch_from_1_to_8_bytes()
118 if (tmp_len) { in ps_fetch_from_1_to_8_bytes()
119 ZVAL_STRINGL(zv, tmp, tmp_len); in ps_fetch_from_1_to_8_bytes()
H A Dmysqlnd_wireprotocol.c1005 size_t tmp_len = packet->argument.l + 1 + MYSQLND_HEADER_SIZE; in php_mysqlnd_cmd_write() local
1007 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
1018 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1624 const size_t tmp_len = sprintf((char *)&tmp, ZEND_ULONG_FMT, Z_LVAL_P(current_field)); in php_mysqlnd_rowp_read_text_protocol_aux() local
1625 ZVAL_STRINGL(current_field, tmp, tmp_len); in php_mysqlnd_rowp_read_text_protocol_aux()
/PHP-8.0/ext/reflection/
H A Dphp_reflection.c3066 size_t tmp_len; in ZEND_METHOD() local
3073 tmp_len = tmp - name; in ZEND_METHOD()
3075 class_name = zend_string_init(name, tmp_len, 0); in ZEND_METHOD()
3077 method_name_len = ZSTR_LEN(arg1_str) - tmp_len - 2; in ZEND_METHOD()

Completed in 97 milliseconds