/php-src/ext/phar/ |
H A D | phar_internal.h | 248 uint32_t fname_len; member 389 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode() 391 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode() 409 zend_result phar_open_from_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, u… 410 zend_result phar_open_or_create_filename(char *fname, size_t fname_len, char *alias, size_t alias_l… 414 zend_result phar_get_archive(phar_archive_data **archive, char *fname, size_t fname_len, char *alia… 448 zend_result phar_parse_tarfile(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t a… 449 zend_result phar_open_or_create_tar(char *fname, size_t fname_len, char *alias, size_t alias_len, i… 453 int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alias, size_t alias_len… 454 int phar_open_or_create_zip(char *fname, size_t fname_len, char *alias, size_t alias_len, int is_da… [all …]
|
H A D | phar_object.c | 461 fname_len = 0; in PHP_METHOD() 472 fname[fname_len] = '\0'; in PHP_METHOD() 1060 size_t fname_len; in PHP_METHOD() local 1154 fname_len = arch_len; in PHP_METHOD() 1158 arch_len = fname_len; in PHP_METHOD() 1296 size_t fname_len; in PHP_METHOD() local 1304 if (!fname_len) { in PHP_METHOD() 1401 size_t fname_len; in phar_build() local 2128 if (pphar->fname_len == phar->fname_len && !memcmp(pphar->fname, phar->fname, phar->fname_len)) { in phar_rename_archive() 2281 phar->fname_len = source->fname_len; in phar_convert_to_other() [all …]
|
H A D | phar.c | 502 if (memchr(fname, '\\', fname_len)) { in phar_open_parsed_phar() 503 fname = do_alloca(fname_len + 1, fname_use_heap); in phar_open_parsed_phar() 504 memcpy(fname, save_fname, fname_len); in phar_open_parsed_phar() 505 fname[fname_len] = '\0'; in phar_open_parsed_phar() 506 phar_unixify_path_separators(fname, fname_len); in phar_open_parsed_phar() 510 && ((alias && fname_len == phar->fname_len in phar_open_parsed_phar() 1125 mydata->fname_len = fname_len; in phar_parse_pharfile() 1408 fname_len = ZSTR_LEN(actual); in phar_create_or_parse_filename() 1449 fname_len = strlen(mydata->fname); in phar_create_or_parse_filename() 1475 mydata->fname_len = fname_len; in phar_create_or_parse_filename() [all …]
|
H A D | util.c | 1014 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive() 1047 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive() 1064 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive() 1078 save_len = fname_len; in phar_get_archive() 1080 if (fname && fname_len) { in phar_get_archive() 1102 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive() 1126 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive() 1138 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive() 1150 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive() 1161 fname_len = strlen(my_realpath); in phar_get_archive() [all …]
|
H A D | tar.c | 627 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile() 629 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile() 631 myphar->fname_len = fname_len; in phar_parse_tarfile() 636 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile() 638 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile() 641 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile() 647 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile() 668 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 683 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 691 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile() [all …]
|
H A D | zip.c | 316 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_zipfile() 318 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_zipfile() 321 mydata->fname_len = fname_len; in phar_parse_zipfile() 325 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext); in phar_parse_zipfile() 327 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1); in phar_parse_zipfile() 330 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_parse_zipfile() 767 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 779 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 800 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 809 mydata->alias = pestrndup(mydata->fname, fname_len, mydata->is_persistent); in phar_parse_zipfile() [all …]
|
H A D | gdbhelp | 22 ____print_str $temp.fname $temp.fname_len
|
/php-src/Zend/ |
H A D | zend_API.c | 2931 size_t fname_len; in zend_register_functions() local 2955 fname_len = strlen(ptr->fname); in zend_register_functions() 2958 internal_function->function_name = zend_string_init_interned(ptr->fname, fname_len, 1); in zend_register_functions() 3203 fname_len = strlen(ptr->fname); in zend_register_functions() 3204 lowercase_name = zend_string_alloc(fname_len, 0); in zend_register_functions() 3205 zend_str_tolower_copy(ZSTR_VAL(lowercase_name), ptr->fname, fname_len); in zend_register_functions() 3228 size_t fname_len; in zend_unregister_functions() local 3237 fname_len = strlen(ptr->fname); in zend_unregister_functions() 3238 lowercase_name = zend_string_alloc(fname_len, 0); in zend_unregister_functions() 3239 zend_str_tolower_copy(ZSTR_VAL(lowercase_name), ptr->fname, fname_len); in zend_unregister_functions()
|
/php-src/ext/spl/ |
H A D | spl_array.c | 1175 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, size_t fname_len, int use_a… in spl_array_method() argument 1182 ZVAL_STRINGL(&function_name, fname, fname_len); in spl_array_method()
|
/php-src/ext/odbc/ |
H A D | php_odbc.c | 2628 size_t i, field_ind, fname_len; 2632 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os", &pv_res, odbc_result_ce, &fname, &fname_len) == F…
|