Lines Matching refs:fname

259 	zend_string *fname = zend_get_executed_filename_ex();  in phar_find_in_include_path()  local
260 if (!fname) { in phar_find_in_include_path()
264 bool is_file_a_phar_wrapper = zend_string_starts_with_literal_ci(fname, "phar://"); in phar_find_in_include_path()
270 && ZSTR_LEN(fname) - length_phar_protocol >= PHAR_G(last_phar_name_len) in phar_find_in_include_path()
271 …&& !memcmp(ZSTR_VAL(fname) + length_phar_protocol, PHAR_G(last_phar_name), PHAR_G(last_phar_name_l… in phar_find_in_include_path()
279 …if (!is_file_a_phar_wrapper || SUCCESS != phar_split_fname(ZSTR_VAL(fname), ZSTR_LEN(fname), &arch… in phar_find_in_include_path()
351 int phar_get_entry_data(phar_entry_data **ret, char *fname, size_t fname_len, char *path, size_t pa… in phar_get_entry_data() argument
370 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
376 …r: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname); in phar_get_entry_data()
383 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
407 …" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname); in phar_get_entry_data()
417 …\"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname); in phar_get_entry_data()
424 …\"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname); in phar_get_entry_data()
511 phar_entry_data *phar_get_or_create_entry_data(char *fname, size_t fname_len, char *path, size_t pa… in phar_get_or_create_entry_data() argument
525 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
529 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
544 … file \"%s\" in phar \"%s\" cannot be created, could not make cached phar writeable", path, fname); in phar_get_or_create_entry_data()
595 …rror, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, phar->fname); in phar_get_or_create_entry_data()
626 if (php_check_open_basedir(phar->fname)) { in phar_open_archive_fp()
630 …phar_set_pharfp(phar, php_stream_open_wrapper(phar->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, NU… in phar_open_archive_fp()
674 …e \"%s\" to \"%s\" in phar archive \"%s\"", source->filename, dest->filename, source->phar->fname); in phar_copy_entry_fp()
719 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
738 …n temporary file for decompressing phar archive \"%s\" file \"%s\"", phar->fname, entry->filename); in phar_open_entry_fp()
760 … \"%s\" (cannot create %s filter while decompressing file \"%s\")", phar->fname, phar_decompress_f… in phar_open_entry_fp()
773 …orruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); in phar_open_entry_fp()
784 …orruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); in phar_open_entry_fp()
881 …ile \"%s\" contents in phar archive \"%s\" for write access", entry->filename, entry->phar->fname); in phar_separate_entry_fp()
913 …6, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->filename, phar->fname); in phar_open_jit()
924 *filename = fd_ptr->fname; in phar_resolve_alias()
939 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_free_alias()
955 int phar_get_archive(phar_archive_data **archive, char *fname, size_t fname_len, char *alias, size_… in phar_get_archive() argument
969 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
975 …used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname); in phar_get_archive()
1002 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1004 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1018 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1032 save = fname; in phar_get_archive()
1035 if (fname && fname_len) { in phar_get_archive()
1036 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1043 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1056 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1064 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1073 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1080 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1092 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1104 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1113 my_realpath = expand_filepath(fname, my_realpath); in phar_get_archive()
1117 fname = my_realpath; in phar_get_archive()
1122 phar_unixify_path_separators(fname, fname_len); in phar_get_archive()
1125 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1137 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1145 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1485 …, size_t end_of_phar, uint32_t sig_type, char *sig, size_t sig_len, char *fname, char **signature,… in phar_verify_signature() argument
1525 spprintf(&pfile, 0, "%s.pubkey", fname); in phar_verify_signature()
1868 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1887 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1899 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1909 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1919 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1935 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
2041 char *fname; in phar_copy_cached_phar() local
2047 fname = phar->fname; in phar_copy_cached_phar()
2048 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar()
2049 phar->ext = phar->fname + (phar->ext - fname); in phar_copy_cached_phar()
2075 …archive->fname_len == phar->fname_len && !memcmp(objphar->archive->fname, phar->fname, phar->fname… in phar_copy_cached_phar()
2088 …if (NULL == (pzv = zend_hash_str_add(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_l… in phar_copy_on_write()
2099 zend_hash_str_del(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_len); in phar_copy_on_write()