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()
154 …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()
202 int phar_parse_tarfile(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t alias_len… in phar_parse_tarfile() argument
224 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
287 … error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
298 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
312 …, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signatur… in phar_parse_tarfile()
315 …tf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); in phar_parse_tarfile()
328 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
340 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
355 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
369 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
381 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
397 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
409 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
465 … error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); in phar_parse_tarfile()
498 …"%s\" is a corrupted tar file - hard link to non-existent file \"%.*s\"", fname, (int)linkname_len… in phar_parse_tarfile()
521 …ar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); in phar_parse_tarfile()
533 …phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
553 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
567 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
584 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
596 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
615 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
620 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
622 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
626 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
629 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
631 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
634 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
640 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile()
642 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
659 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
661 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
674 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
676 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
684 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
734 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
744 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
758 …e created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
765 …cation time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
776 …ar \"%s\" cannot be created, link \"%s\" is too long for format", entry->phar->fname, entry->link); in phar_tar_writeheaders_int()
789 …d, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
799 …ot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
814 …, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
821 …ot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
979 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1000 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1023 …intf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1050 …printf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1061 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1080 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1106 … phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); in phar_tar_flush()
1121 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1139 oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); in phar_tar_flush()
1179 …ar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); in phar_tar_flush()
1251 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1309 …phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, … in phar_tar_flush()
1313 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1337 …contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); in phar_tar_flush()