Lines Matching refs:fname

282 	zend_string *fname = zend_get_executed_filename_ex();  in phar_find_in_include_path()  local
283 if (!fname) { in phar_find_in_include_path()
287 bool is_file_a_phar_wrapper = zend_string_starts_with_literal_ci(fname, "phar://"); in phar_find_in_include_path()
293 && ZSTR_LEN(fname) - length_phar_protocol >= PHAR_G(last_phar_name_len) in phar_find_in_include_path()
294 …&& !memcmp(ZSTR_VAL(fname) + length_phar_protocol, PHAR_G(last_phar_name), PHAR_G(last_phar_name_l… in phar_find_in_include_path()
302 …if (!is_file_a_phar_wrapper || SUCCESS != phar_split_fname(ZSTR_VAL(fname), ZSTR_LEN(fname), &arch… in phar_find_in_include_path()
446 …ile \"%s\" contents in phar archive \"%s\" for write access", entry->filename, entry->phar->fname); in phar_separate_entry_fp()
473 zend_result phar_get_entry_data(phar_entry_data **ret, char *fname, size_t fname_len, char *path, s… in phar_get_entry_data() argument
492 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
498 …r: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname); in phar_get_entry_data()
505 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" must not be empty", fname); in phar_get_entry_data()
529 …" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname); in phar_get_entry_data()
539 …\"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname); in phar_get_entry_data()
546 …\"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname); in phar_get_entry_data()
633 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
647 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
651 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
666 … file \"%s\" in phar \"%s\" cannot be created, could not make cached phar writeable", path, fname); in phar_get_or_create_entry_data()
717 …rror, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, phar->fname); in phar_get_or_create_entry_data()
758 if (php_check_open_basedir(phar->fname)) { in phar_open_archive_fp()
762 …phar_set_pharfp(phar, php_stream_open_wrapper(phar->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, NU… in phar_open_archive_fp()
806 …e \"%s\" to \"%s\" in phar archive \"%s\"", source->filename, dest->filename, source->phar->fname); in phar_copy_entry_fp()
875 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
894 …n temporary file for decompressing phar archive \"%s\" file \"%s\"", phar->fname, entry->filename); in phar_open_entry_fp()
916 … \"%s\" (cannot create %s filter while decompressing file \"%s\")", phar->fname, phar_decompress_f… in phar_open_entry_fp()
929 …orruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); in phar_open_entry_fp()
940 …orruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); in phar_open_entry_fp()
970 …6, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->filename, phar->fname); in phar_open_jit()
984 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_free_alias()
1000 zend_result phar_get_archive(phar_archive_data **archive, char *fname, size_t fname_len, char *alia… in phar_get_archive() argument
1014 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
1020 …used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname); in phar_get_archive()
1047 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1049 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1063 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1077 save = fname; in phar_get_archive()
1080 if (fname && fname_len) { in phar_get_archive()
1081 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1088 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1101 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1109 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1118 …is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, fd_ptr->fname, fname); in phar_get_archive()
1125 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1137 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1149 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1158 my_realpath = expand_filepath(fname, my_realpath); in phar_get_archive()
1162 fname = my_realpath; in phar_get_archive()
1167 phar_unixify_path_separators(fname, fname_len); in phar_get_archive()
1170 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1182 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1190 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1530 …, size_t end_of_phar, uint32_t sig_type, char *sig, size_t sig_len, char *fname, char **signature,… in phar_verify_signature() argument
1570 spprintf(&pfile, 0, "%s.pubkey", fname); in phar_verify_signature()
1913 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1932 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1944 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1954 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1964 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1980 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
2086 char *fname; in phar_copy_cached_phar() local
2092 fname = phar->fname; in phar_copy_cached_phar()
2093 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar()
2094 phar->ext = phar->fname + (phar->ext - fname); in phar_copy_cached_phar()
2120 …archive->fname_len == phar->fname_len && !memcmp(objphar->archive->fname, phar->fname, phar->fname… in phar_copy_cached_phar()
2133 …if (NULL == (pzv = zend_hash_str_add(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_l… in phar_copy_on_write()
2144 zend_hash_str_del(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_len); in phar_copy_on_write()