Lines Matching refs:fname

100 int phar_is_tar(char *buf, char *fname) /* {{{ */  in phar_is_tar()  argument
116 if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) { in phar_is_tar()
117 fname = bname; in phar_is_tar()
119 if (!ret && (bname = strstr(fname, ".tar")) && (bname[4] == '\0' || bname[4] == '.')) { in phar_is_tar()
127 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, in… in phar_open_or_create_tar() argument
130 …int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &pha… in phar_open_or_create_tar()
155 …sts as a regular phar and must be deleted from disk prior to creating as a tar-based phar", fname); in phar_open_or_create_tar()
205 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar… in phar_parse_tarfile() argument
227 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
280 … error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
291 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
305 …, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signatur… in phar_parse_tarfile()
308 …tf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); in phar_parse_tarfile()
320 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
332 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
347 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
361 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
373 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
389 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
401 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
457 … error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); in phar_parse_tarfile()
491 …"%s\" is a corrupted tar file - hard link to non-existent file \"%.*s\"", fname, linkname_len, hdr… in phar_parse_tarfile()
512 …ar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); in phar_parse_tarfile()
524 …phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
544 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
558 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
575 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
587 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
606 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
611 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
613 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
617 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
620 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
622 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
625 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
631 …if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len, (void*)&my… in phar_parse_tarfile()
633 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
650 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
652 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
665 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
667 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
675 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
726 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
736 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
750 …e created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
757 …cation time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
776 …d, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
786 …ot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
801 …, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
808 …ot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
964 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
984 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
993 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1008 …intf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1021 …printf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1034 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1055 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1081 … phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); in phar_tar_flush()
1096 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1109 spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1121 oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); in phar_tar_flush()
1161 …ar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); in phar_tar_flush()
1231 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1289 …phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, … in phar_tar_flush()
1293 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1317 …contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); in phar_tar_flush()