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()
294 if (error) { in phar_parse_tarfile()
295 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
305 if (error) { in phar_parse_tarfile()
306 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
320 … - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &sig_len, error)) { in phar_parse_tarfile()
321 if (error) { in phar_parse_tarfile()
322 char *save = *error; in phar_parse_tarfile()
323 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
335 if (error) { in phar_parse_tarfile()
336 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
347 if (error) { in phar_parse_tarfile()
348 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
362 if (error) { in phar_parse_tarfile()
363 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
376 if (error) { in phar_parse_tarfile()
377 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
388 if (error) { in phar_parse_tarfile()
389 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
404 if (error) { in phar_parse_tarfile()
405 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
416 if (error) { in phar_parse_tarfile()
417 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
472 if (error) { in phar_parse_tarfile()
473 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
505 if (error) { in phar_parse_tarfile()
506 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
528 if (error) { in phar_parse_tarfile()
529 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
540 if (error) { in phar_parse_tarfile()
541 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
560 if (error) { in phar_parse_tarfile()
561 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
574 if (error) { in phar_parse_tarfile()
575 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
591 if (error) { in phar_parse_tarfile()
592 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
603 if (error) { in phar_parse_tarfile()
604 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
622 if (error) { in phar_parse_tarfile()
623 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
649 if (error) { in phar_parse_tarfile()
650 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
666 if (error) { in phar_parse_tarfile()
667 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
681 if (error) { in phar_parse_tarfile()
682 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
712 char **error; member
741 if (fp->error) { in phar_tar_writeheaders_int()
742 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
751 if (fp->error) { in phar_tar_writeheaders_int()
752 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
765 if (fp->error) { in phar_tar_writeheaders_int()
766 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders_int()
772 if (fp->error) { in phar_tar_writeheaders_int()
773 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders_int()
783 if (fp->error) { in phar_tar_writeheaders_int()
784 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, link \"%s\" is too long for fo… in phar_tar_writeheaders_int()
796 if (fp->error) { in phar_tar_writeheaders_int()
797 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
806 if (fp->error) { in phar_tar_writeheaders_int()
807 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
816 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
821 if (fp->error) { in phar_tar_writeheaders_int()
822 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
828 if (fp->error) { in phar_tar_writeheaders_int()
829 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
874 int phar_tar_setmetadata(const phar_metadata_tracker *tracker, phar_entry_info *entry, char **error… in phar_tar_setmetadata() argument
894 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
898 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
911 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
916 return phar_tar_setmetadata(&entry->phar->metadata_tracker, entry, error); in phar_tar_setupmetadata()
942 ret = phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
955 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
959 return phar_tar_setmetadata(&entry->metadata_tracker, metadata, error); in phar_tar_setupmetadata()
963 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, 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()
1030 if (error) { in phar_tar_flush()
1031 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1057 if (error) { in phar_tar_flush()
1058 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1070 if (error) { in phar_tar_flush()
1071 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()