Lines Matching refs:fname

103 bool phar_is_tar(char *buf, char *fname) /* {{{ */  in phar_is_tar()  argument
119 if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) { in phar_is_tar()
120 fname = bname; in phar_is_tar()
122 if (!is_tar && (bname = strstr(fname, ".tar")) && (bname[4] == '\0' || bname[4] == '.')) { in phar_is_tar()
130 zend_result phar_open_or_create_tar(char *fname, size_t fname_len, char *alias, size_t alias_len, i… in phar_open_or_create_tar() argument
133 …zend_result ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, optio… in phar_open_or_create_tar()
157 …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 zend_result phar_parse_tarfile(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t a… 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()
290 … error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
301 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
315 …, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signatur… in phar_parse_tarfile()
318 …tf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); in phar_parse_tarfile()
331 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
343 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
358 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
372 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
384 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
400 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
412 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
468 … error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); in phar_parse_tarfile()
501 …"%s\" is a corrupted tar file - hard link to non-existent file \"%.*s\"", fname, (int)linkname_len… in phar_parse_tarfile()
524 …ar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); in phar_parse_tarfile()
536 …phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); in phar_parse_tarfile()
556 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
570 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
587 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
599 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
618 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
623 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
625 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
629 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
632 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
634 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
637 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
643 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile()
645 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
662 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
664 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
677 …tf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); in phar_parse_tarfile()
679 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
687 myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
737 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
747 …be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
761 …e created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
768 …cation time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
779 …ar \"%s\" cannot be created, link \"%s\" is too long for format", entry->phar->fname, entry->link); in phar_tar_writeheaders_int()
792 …d, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
802 …ot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
817 …, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
824 …ot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); in phar_tar_writeheaders_int()
983 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1004 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1026 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1047 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1066 … phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); in phar_tar_flush()
1081 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1099 oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); in phar_tar_flush()
1139 …ar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); in phar_tar_flush()
1211 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1269 …phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, … in phar_tar_flush()
1273 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1297 …contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); in phar_tar_flush()