/PHP-7.1/win32/ |
H A D | codepage.c | 36 int ret_len, tmp_len; in php_win32_cp_to_w_int() local 44 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_to_w_int() 58 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int() 59 if (tmp_len == 0) { in php_win32_cp_to_w_int() 65 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int() 174 int target_len, tmp_len; in php_win32_cp_from_w_int() local 183 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_from_w_int() 373 size_t tmp_len; in php_win32_cp_env_any_to_w() local 377 tmp_len = wcslen(tmp) + 1; in php_win32_cp_env_any_to_w() 378 memmove(ew + bin_len, tmp, tmp_len * sizeof(wchar_t)); in php_win32_cp_env_any_to_w() [all …]
|
H A D | ioutil.c | 432 DWORD tmp_len = GetCurrentDirectoryW(0, NULL) + 1; in php_win32_ioutil_getcwd_w() local 433 if (!tmp_len) { in php_win32_ioutil_getcwd_w() 437 } else if (tmp_len > len) { in php_win32_ioutil_getcwd_w() 442 len = tmp_len; in php_win32_ioutil_getcwd_w()
|
/PHP-7.1/ext/standard/ |
H A D | ftp_fopen_wrapper.c | 140 int result, use_ssl, use_ssl_on_data = 0, tmp_len; in php_ftp_fopen_connect() local 252 PHP_FTP_CNTRL_CHK(resource->user, tmp_len, "Invalid login %s") in php_ftp_fopen_connect() 623 size_t tmp_len; in php_ftp_dirstream_read() local 640 basename = php_basename(ent->d_name, tmp_len, NULL, 0); in php_ftp_dirstream_read() 642 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1); in php_ftp_dirstream_read() 643 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len); in php_ftp_dirstream_read() 644 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read() 648 while (tmp_len > 0 && in php_ftp_dirstream_read() 649 (ent->d_name[tmp_len - 1] == '\n' || ent->d_name[tmp_len - 1] == '\r' || in php_ftp_dirstream_read() 650 ent->d_name[tmp_len - 1] == '\t' || ent->d_name[tmp_len - 1] == ' ')) { in php_ftp_dirstream_read() [all …]
|
H A D | url_scanner_ex.c | 186 size_t tmp_len; in PHP_INI_END() local 215 && (tmp_len = strlen(url_parts->host)) in PHP_INI_END() 216 && (tmp = php_strtolower(url_parts->host, tmp_len)) in PHP_INI_END() 217 && !zend_hash_str_find(&BG(url_adapt_session_hosts_ht), tmp, tmp_len)) { in PHP_INI_END()
|
H A D | proc_open.c | 439 size_t tmp_len; in PHP_FUNCTION() local 740 cmdw = php_win32_cp_conv_any_to_w(command, command_len, &tmp_len); in PHP_FUNCTION() 754 len = (sizeof(COMSPEC_NT) + sizeof(" /c ") + tmp_len + 1); in PHP_FUNCTION()
|
H A D | url_scanner_ex.re | 189 size_t tmp_len; 218 && (tmp_len = strlen(url_parts->host)) 219 && (tmp = php_strtolower(url_parts->host, tmp_len)) 220 && !zend_hash_str_find(&BG(url_adapt_session_hosts_ht), tmp, tmp_len)) {
|
H A D | string.c | 2409 zval *tmp_str = NULL, *tmp_from = NULL, *tmp_repl = NULL, *tmp_len= NULL; local 2570 tmp_len = &Z_ARRVAL_P(len)->arData[len_idx].val; 2571 if (Z_TYPE_P(tmp_len) != IS_UNDEF) { 2577 l = zval_get_long(tmp_len);
|
/PHP-7.1/ext/phar/ |
H A D | phar_internal.h | 511 int tmp_len; in phar_set_inode() local 514 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode() 516 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode() 519 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode() 522 entry->inode = (unsigned short) zend_hash_func(tmp, tmp_len); in phar_set_inode()
|
H A D | phar.c | 671 uint32_t manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags; local 985 SAFE_PHAR_GET_32(buffer, endbuffer, tmp_len); 987 if (buffer + tmp_len > endbuffer) { 991 if (manifest_len < MANIFEST_FIXED_LEN + tmp_len) { 996 if (tmp_len) { 998 if (alias && alias_len && (alias_len != (int)tmp_len || strncmp(alias, buffer, tmp_len))) 1007 … \"%s\" with implicit alias \"%.*s\" under different alias \"%s\"", fname, tmp_len, buffer, alias); 1014 alias_len = tmp_len; 1016 buffer += tmp_len; 1029 if (manifest_count > ((manifest_len - MANIFEST_FIXED_LEN - tmp_len) / (5 * 4 + 1))) {
|
H A D | phar_object.c | 3447 int tmp_len = 0; in PHP_METHOD() local 3491 tmp_len = (int)newfile_len; in PHP_METHOD() 3492 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD() 3497 newfile_len = tmp_len; in PHP_METHOD()
|
/PHP-7.1/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 535 size_t tmp_len; in pgsql_stmt_get_col() local 578 char *tmp_ptr = (char *)PQunescapeBytea((unsigned char *)*ptr, &tmp_len); in pgsql_stmt_get_col() 584 if (!tmp_len) { in pgsql_stmt_get_col() 590 *ptr = estrndup(tmp_ptr, tmp_len); in pgsql_stmt_get_col() 592 *len = tmp_len; in pgsql_stmt_get_col()
|
H A D | pgsql_driver.c | 335 size_t tmp_len; in pgsql_handle_quoter() local 340 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter() 341 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
|
/PHP-7.1/ext/mysqlnd/ |
H A D | mysqlnd_ps_codec.c | 60 size_t tmp_len = 0; in ps_fetch_from_1_to_8_bytes() local 81 tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, uval); in ps_fetch_from_1_to_8_bytes() 89 tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, uval); in ps_fetch_from_1_to_8_bytes() 111 tmp_len = sprintf((char *)&tmp, MYSQLND_LL_SPEC, lval); in ps_fetch_from_1_to_8_bytes() 119 if (tmp_len) { in ps_fetch_from_1_to_8_bytes() 120 ZVAL_STRINGL(zv, tmp, tmp_len); in ps_fetch_from_1_to_8_bytes()
|
H A D | mysqlnd_wireprotocol.c | 1046 size_t tmp_len = packet->argument.l + 1 + MYSQLND_HEADER_SIZE; in php_mysqlnd_cmd_write() local 1048 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write() 1059 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write() 1764 …const size_t tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, (uint64_t) Z_LVAL_P(current_field)); in php_mysqlnd_rowp_read_text_protocol_aux() local 1765 ZVAL_STRINGL(current_field, tmp, tmp_len); in php_mysqlnd_rowp_read_text_protocol_aux()
|
/PHP-7.1/ext/reflection/ |
H A D | php_reflection.c | 3101 size_t name_len, tmp_len; in ZEND_METHOD() local 3115 tmp_len = tmp - name_str; in ZEND_METHOD() 3116 ZVAL_STRINGL(classname, name_str, tmp_len); in ZEND_METHOD() 3117 name_len = name_len - (tmp_len + 2); in ZEND_METHOD()
|
/PHP-7.1/ext/pgsql/ |
H A D | pgsql.c | 814 size_t tmp_len; in php_pgsql_PQescapeInternal() local 852 tmp_len = strspn(str, "\\"); in php_pgsql_PQescapeInternal() 853 if (tmp_len != len) { in php_pgsql_PQescapeInternal()
|