Home
last modified time | relevance | path

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

/PHP-7.4/win32/
H A Dcodepage.c39 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
47 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_to_w_int()
49 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
61 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
62 if (tmp_len == 0) { in php_win32_cp_to_w_int()
68 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int()
219 int target_len, tmp_len; in php_win32_cp_from_w_int() local
228 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_from_w_int()
416 size_t tmp_len = wcslen(tmp) + 1; in php_win32_cp_env_any_to_w() local
417 memmove(ew + bin_len, tmp, tmp_len * sizeof(wchar_t)); in php_win32_cp_env_any_to_w()
[all …]
H A Dioutil.c490 DWORD tmp_len = (DWORD)len; in php_win32_ioutil_getcwd_w() local
494 tmp_len = GetCurrentDirectoryW(0, NULL) + 1; in php_win32_ioutil_getcwd_w()
495 if (!tmp_len) { in php_win32_ioutil_getcwd_w()
499 } else if (tmp_len > len) { in php_win32_ioutil_getcwd_w()
504 tmp_buf = (wchar_t *)malloc((tmp_len)*sizeof(wchar_t)); in php_win32_ioutil_getcwd_w()
512 if (!GetCurrentDirectoryW(tmp_len, buf)) { in php_win32_ioutil_getcwd_w()
/PHP-7.4/ext/standard/
H A Dftp_fopen_wrapper.c620 size_t tmp_len; in php_ftp_dirstream_read() local
633 if (!php_stream_get_line(innerstream, ent->d_name, sizeof(ent->d_name), &tmp_len)) { in php_ftp_dirstream_read()
637 basename = php_basename(ent->d_name, tmp_len, NULL, 0); in php_ftp_dirstream_read()
639 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1); in php_ftp_dirstream_read()
640 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len); in php_ftp_dirstream_read()
641 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read()
645 while (tmp_len > 0 && in php_ftp_dirstream_read()
646 (ent->d_name[tmp_len - 1] == '\n' || ent->d_name[tmp_len - 1] == '\r' || in php_ftp_dirstream_read()
647 ent->d_name[tmp_len - 1] == '\t' || ent->d_name[tmp_len - 1] == ' ')) { in php_ftp_dirstream_read()
648 ent->d_name[--tmp_len] = '\0'; in php_ftp_dirstream_read()
H A Dproc_open.c502 size_t tmp_len; in PHP_FUNCTION() local
945 cmdw = php_win32_cp_conv_any_to_w(command, strlen(command), &tmp_len); in PHP_FUNCTION()
959 len = (sizeof(COMSPEC_NT) + sizeof(" /c ") + tmp_len + 1); in PHP_FUNCTION()
H A Dstring.c2475 zval *tmp_str = NULL, *tmp_from = NULL, *tmp_repl = NULL, *tmp_len= NULL; local
2642 tmp_len = &Z_ARRVAL_P(len)->arData[len_idx].val;
2643 if (Z_TYPE_P(tmp_len) != IS_UNDEF) {
2649 l = zval_get_long(tmp_len);
/PHP-7.4/ext/phar/
H A Dphar_internal.h502 size_t tmp_len; in phar_set_inode() local
505 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
507 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
512 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
515 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
H A Dphar.c672 uint32_t manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags; in phar_parse_pharfile() local
976 SAFE_PHAR_GET_32(buffer, endbuffer, tmp_len); in phar_parse_pharfile()
978 if (buffer + tmp_len > endbuffer) { in phar_parse_pharfile()
982 if (manifest_len < MANIFEST_FIXED_LEN + tmp_len) { in phar_parse_pharfile()
987 if (tmp_len) { in phar_parse_pharfile()
989 if (alias && alias_len && (alias_len != tmp_len || strncmp(alias, buffer, tmp_len))) in phar_parse_pharfile()
998 … \"%s\" with implicit alias \"%.*s\" under different alias \"%s\"", fname, tmp_len, buffer, alias); in phar_parse_pharfile()
1005 alias_len = tmp_len; in phar_parse_pharfile()
1007 buffer += tmp_len; in phar_parse_pharfile()
1020 if (manifest_count > ((manifest_len - MANIFEST_FIXED_LEN - tmp_len) / (5 * 4 + 1))) { in phar_parse_pharfile()
H A Dphar_object.c3454 size_t tmp_len = 0; in PHP_METHOD() local
3495 tmp_len = newfile_len; in PHP_METHOD()
3496 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD()
3501 newfile_len = tmp_len; in PHP_METHOD()
/PHP-7.4/ext/pdo_pgsql/
H A Dpgsql_statement.c533 size_t tmp_len; in pgsql_stmt_get_col() local
576 char *tmp_ptr = (char *)PQunescapeBytea((unsigned char *)*ptr, &tmp_len); in pgsql_stmt_get_col()
582 if (!tmp_len) { in pgsql_stmt_get_col()
588 *ptr = estrndup(tmp_ptr, tmp_len); in pgsql_stmt_get_col()
590 *len = tmp_len; in pgsql_stmt_get_col()
H A Dpgsql_driver.c325 size_t tmp_len; in pgsql_handle_quoter() local
330 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter()
331 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c61 size_t tmp_len = 0; in ps_fetch_from_1_to_8_bytes() local
82 tmp_len = sprintf((char *)&tmp, "%" PRIu64, uval); in ps_fetch_from_1_to_8_bytes()
90 tmp_len = sprintf((char *)&tmp, "%" PRIu64, uval); in ps_fetch_from_1_to_8_bytes()
112 tmp_len = sprintf((char *)&tmp, "%" PRIi64, lval); in ps_fetch_from_1_to_8_bytes()
120 if (tmp_len) { in ps_fetch_from_1_to_8_bytes()
121 ZVAL_STRINGL(zv, tmp, tmp_len); in ps_fetch_from_1_to_8_bytes()
H A Dmysqlnd_wireprotocol.c1004 size_t tmp_len = packet->argument.l + 1 + MYSQLND_HEADER_SIZE; in php_mysqlnd_cmd_write() local
1006 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
1017 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1635 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
1636 ZVAL_STRINGL(current_field, tmp, tmp_len); in php_mysqlnd_rowp_read_text_protocol_aux()
/PHP-7.4/ext/reflection/
H A Dphp_reflection.c2937 size_t name_len, tmp_len; in ZEND_METHOD() local
2951 tmp_len = tmp - name_str; in ZEND_METHOD()
2952 ZVAL_STRINGL(classname, name_str, tmp_len); in ZEND_METHOD()
2953 name_len = name_len - (tmp_len + 2); in ZEND_METHOD()
/PHP-7.4/ext/pgsql/
H A Dpgsql.c827 size_t tmp_len; in php_pgsql_PQescapeInternal() local
843 tmp_len = strspn(str, "\\"); in php_pgsql_PQescapeInternal()
844 if (tmp_len != len) { in php_pgsql_PQescapeInternal()

Completed in 103 milliseconds