Lines Matching refs:error
127 …size_t alias_len, int is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_or_create_tar() argument
130 … phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error); in phar_open_or_create_tar()
154 if (error) { in phar_open_or_create_tar()
155 …spprintf(error, 4096, "phar tar error: \"%s\" already exists as a regular phar and must be deleted… in phar_open_or_create_tar()
210 …_t alias_len, phar_archive_data** pphar, int is_data, uint32_t compression, char **error) /* {{{ */ in phar_parse_tarfile() argument
221 if (error) { in phar_parse_tarfile()
222 *error = NULL; in phar_parse_tarfile()
231 if (error) { in phar_parse_tarfile()
232 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
293 if (error) { in phar_parse_tarfile()
294 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
304 if (error) { in phar_parse_tarfile()
305 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
319 … - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &sig_len, error)) { in phar_parse_tarfile()
320 if (error) { in phar_parse_tarfile()
321 char *save = *error; in phar_parse_tarfile()
322 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
334 if (error) { in phar_parse_tarfile()
335 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
346 if (error) { in phar_parse_tarfile()
347 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
361 if (error) { in phar_parse_tarfile()
362 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
375 if (error) { in phar_parse_tarfile()
376 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
387 if (error) { in phar_parse_tarfile()
388 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
403 if (error) { in phar_parse_tarfile()
404 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
415 if (error) { in phar_parse_tarfile()
416 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
471 if (error) { in phar_parse_tarfile()
472 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
504 if (error) { in phar_parse_tarfile()
505 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
527 if (error) { in phar_parse_tarfile()
528 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
539 if (error) { in phar_parse_tarfile()
540 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
559 if (error) { in phar_parse_tarfile()
560 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
573 if (error) { in phar_parse_tarfile()
574 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
590 if (error) { in phar_parse_tarfile()
591 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
607 if (error) { in phar_parse_tarfile()
608 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
626 if (error) { in phar_parse_tarfile()
627 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
653 if (error) { in phar_parse_tarfile()
654 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
670 if (error) { in phar_parse_tarfile()
671 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
685 if (error) { in phar_parse_tarfile()
686 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
716 char **error; member
745 if (fp->error) { in phar_tar_writeheaders_int()
746 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
755 if (fp->error) { in phar_tar_writeheaders_int()
756 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
769 if (fp->error) { in phar_tar_writeheaders_int()
770 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders_int()
776 if (fp->error) { in phar_tar_writeheaders_int()
777 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders_int()
787 if (fp->error) { in phar_tar_writeheaders_int()
788 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, link \"%s\" is too long for fo… in phar_tar_writeheaders_int()
800 if (fp->error) { in phar_tar_writeheaders_int()
801 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
810 if (fp->error) { in phar_tar_writeheaders_int()
811 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
820 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
825 if (fp->error) { in phar_tar_writeheaders_int()
826 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
832 if (fp->error) { in phar_tar_writeheaders_int()
833 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
878 int phar_tar_setmetadata(const phar_metadata_tracker *tracker, phar_entry_info *entry, char **error… in phar_tar_setmetadata() argument
898 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
902 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
915 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
920 return phar_tar_setmetadata(&entry->phar->metadata_tracker, entry, error); in phar_tar_setupmetadata()
946 ret = phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
959 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
963 return phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
967 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, char **error) /* {{{ */ in phar_tar_flush() argument
990 if (error) { in phar_tar_flush()
991 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1007 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1011 if (error) { in phar_tar_flush()
1012 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1034 if (error) { in phar_tar_flush()
1035 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1061 if (error) { in phar_tar_flush()
1062 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1072 if (error) { in phar_tar_flush()
1073 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1084 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1091 if (error) { in phar_tar_flush()
1092 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1112 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1117 if (error) { in phar_tar_flush()
1118 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1132 if (error) { in phar_tar_flush()
1133 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1157 if (error) { in phar_tar_flush()
1158 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1168 pass.error = error; in phar_tar_flush()
1175 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1191 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1198 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1210 if (error && *error) { in phar_tar_flush()
1224 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) { in phar_tar_flush()
1225 if (error) { in phar_tar_flush()
1226 char *save = *error; in phar_tar_flush()
1227 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1243 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1262 if (error) { in phar_tar_flush()
1263 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1278 if (error && *error) { in phar_tar_flush()
1298 if (error && *error) { in phar_tar_flush()
1324 if (error) { in phar_tar_flush()
1325 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1348 if (error) { in phar_tar_flush()
1349 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()