Lines Matching refs:fname

100 int phar_is_tar(char *buf, char *fname) /* {{{ */  in phar_is_tar()  argument
116 if (!ret && strstr(fname, ".tar")) { in phar_is_tar()
124 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
127 …int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &pha… in phar_open_or_create_tar()
152 …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()
195 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar… in phar_parse_tarfile() argument
216 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
263 … error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
274 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
288 …, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signatur… in phar_parse_tarfile()
291 …tf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); in phar_parse_tarfile()
303 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
315 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
330 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
344 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
356 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
372 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
384 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
440 … error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); in phar_parse_tarfile()
472 …or: \"%s\" is a corrupted tar file - hard link to non-existent file \"%s\"", fname, hdr->linkname); in phar_parse_tarfile()
493 …ar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); in phar_parse_tarfile()
505 …phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
525 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
539 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
555 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
567 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
586 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
591 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
593 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
597 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
600 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
602 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
605 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
611 …if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len, (void*)&my… in phar_parse_tarfile()
613 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
630 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
632 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
645 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
647 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
655 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
706 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
716 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
730 …e created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
737 …cation time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
756 …d, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
766 …ot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
781 …, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
788 …ot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders()
941 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
961 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
970 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
985 …intf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
998 …printf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1011 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1032 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1058 … phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); in phar_tar_flush()
1073 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1086 spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1098 oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); in phar_tar_flush()
1138 …ar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); in phar_tar_flush()
1208 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1266 …phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, … in phar_tar_flush()
1270 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1294 …contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); in phar_tar_flush()