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, size_t fname_len, char *alias, size_t alias_len, int is_da… 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()
213 int phar_parse_tarfile(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t alias_len… in phar_parse_tarfile() argument
235 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
298 … error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
309 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
323 …, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signatur… in phar_parse_tarfile()
326 …tf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); in phar_parse_tarfile()
339 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
351 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
366 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
380 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
392 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
408 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
420 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
476 … error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); in phar_parse_tarfile()
508 …"%s\" is a corrupted tar file - hard link to non-existent file \"%.*s\"", fname, (int)linkname_len… in phar_parse_tarfile()
531 …ar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); in phar_parse_tarfile()
543 …phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
563 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
577 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
594 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
606 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
625 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
630 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
632 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
636 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
639 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
641 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
644 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
650 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile()
652 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
669 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
671 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
684 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
686 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
694 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
744 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
754 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
768 …e created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
775 …cation time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
786 …ar \"%s\" cannot be created, link \"%s\" is too long for format", entry->phar->fname, entry->link); in phar_tar_writeheaders_int()
799 …d, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
809 …ot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
824 …, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
831 …ot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
992 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1013 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1036 …intf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1063 …printf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1076 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1097 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1123 … phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); in phar_tar_flush()
1138 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1156 oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); in phar_tar_flush()
1196 …ar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); in phar_tar_flush()
1266 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1324 …phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, … in phar_tar_flush()
1328 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1352 …contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); in phar_tar_flush()