Lines Matching refs:error
130 …size_t alias_len, int is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_or_create_tar() argument
133 … phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error); in phar_open_or_create_tar()
156 if (error) { in phar_open_or_create_tar()
157 …spprintf(error, 4096, "phar tar error: \"%s\" already exists as a regular phar and must be deleted… in phar_open_or_create_tar()
205 … *alias, size_t alias_len, phar_archive_data** pphar, uint32_t compression, char **error) /* {{{ */ in phar_parse_tarfile() argument
216 if (error) { in phar_parse_tarfile()
217 *error = NULL; in phar_parse_tarfile()
226 if (error) { in phar_parse_tarfile()
227 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
288 if (error) { in phar_parse_tarfile()
289 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
299 if (error) { in phar_parse_tarfile()
300 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
314 … - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &sig_len, error)) { in phar_parse_tarfile()
315 if (error) { in phar_parse_tarfile()
316 char *save = *error; in phar_parse_tarfile()
317 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
329 if (error) { in phar_parse_tarfile()
330 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
341 if (error) { in phar_parse_tarfile()
342 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
356 if (error) { in phar_parse_tarfile()
357 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
370 if (error) { in phar_parse_tarfile()
371 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
382 if (error) { in phar_parse_tarfile()
383 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
398 if (error) { in phar_parse_tarfile()
399 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
410 if (error) { in phar_parse_tarfile()
411 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
466 if (error) { in phar_parse_tarfile()
467 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
499 if (error) { in phar_parse_tarfile()
500 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
522 if (error) { in phar_parse_tarfile()
523 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
534 if (error) { in phar_parse_tarfile()
535 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
554 if (error) { in phar_parse_tarfile()
555 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
568 if (error) { in phar_parse_tarfile()
569 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
585 if (error) { in phar_parse_tarfile()
586 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
602 if (error) { in phar_parse_tarfile()
603 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
621 if (error) { in phar_parse_tarfile()
622 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
648 if (error) { in phar_parse_tarfile()
649 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
665 if (error) { in phar_parse_tarfile()
666 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
680 if (error) { in phar_parse_tarfile()
681 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
711 char **error; member
740 if (fp->error) { in phar_tar_writeheaders_int()
741 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
750 if (fp->error) { in phar_tar_writeheaders_int()
751 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
764 if (fp->error) { in phar_tar_writeheaders_int()
765 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders_int()
771 if (fp->error) { in phar_tar_writeheaders_int()
772 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders_int()
782 if (fp->error) { in phar_tar_writeheaders_int()
783 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, link \"%s\" is too long for fo… in phar_tar_writeheaders_int()
795 if (fp->error) { in phar_tar_writeheaders_int()
796 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
805 if (fp->error) { in phar_tar_writeheaders_int()
806 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
815 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
820 if (fp->error) { in phar_tar_writeheaders_int()
821 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
827 if (fp->error) { in phar_tar_writeheaders_int()
828 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
873 …r_setmetadata(const phar_metadata_tracker *tracker, phar_entry_info *entry, char **error) /* {{{ */ in phar_tar_setmetadata() argument
893 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
897 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
910 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
915 return phar_tar_setmetadata(&entry->phar->metadata_tracker, entry, error); in phar_tar_setupmetadata()
941 ret = phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
954 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
958 return phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
962 …lush(phar_archive_data *phar, zend_string *user_stub, bool is_default_stub, char **error) /* {{{ */ in phar_tar_flush() argument
986 if (error) { in phar_tar_flush()
987 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1003 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1007 if (error) { in phar_tar_flush()
1008 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1029 if (error) { in phar_tar_flush()
1030 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1041 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1050 if (error) { in phar_tar_flush()
1051 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1064 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1069 if (error) { in phar_tar_flush()
1070 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1084 if (error) { in phar_tar_flush()
1085 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1109 if (error) { in phar_tar_flush()
1110 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1120 pass.error = error; in phar_tar_flush()
1127 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1143 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1150 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1162 if (error && *error) { in phar_tar_flush()
1176 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) { in phar_tar_flush()
1177 if (error) { in phar_tar_flush()
1178 char *save = *error; in phar_tar_flush()
1179 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1195 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1214 if (error) { in phar_tar_flush()
1215 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1230 if (error && *error) { in phar_tar_flush()
1250 if (error && *error) { in phar_tar_flush()
1276 if (error) { in phar_tar_flush()
1277 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1300 if (error) { in phar_tar_flush()
1301 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()