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()
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()
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 int phar_tar_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 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, char **error) /* {{{ */ in phar_tar_flush() argument
985 if (error) { in phar_tar_flush()
986 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1002 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1006 if (error) { in phar_tar_flush()
1007 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, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1056 if (error) { in phar_tar_flush()
1057 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1069 if (error) { in phar_tar_flush()
1070 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1083 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1090 if (error) { in phar_tar_flush()
1091 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1111 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1116 if (error) { in phar_tar_flush()
1117 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1131 if (error) { in phar_tar_flush()
1132 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1156 if (error) { in phar_tar_flush()
1157 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1167 pass.error = error; in phar_tar_flush()
1174 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1190 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1197 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata_tracker, mentry, error)) { in phar_tar_flush()
1209 if (error && *error) { in phar_tar_flush()
1223 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) { in phar_tar_flush()
1224 if (error) { in phar_tar_flush()
1225 char *save = *error; in phar_tar_flush()
1226 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1242 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1259 if (error) { in phar_tar_flush()
1260 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1275 if (error && *error) { in phar_tar_flush()
1295 if (error && *error) { in phar_tar_flush()
1321 if (error) { in phar_tar_flush()
1322 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1345 if (error) { in phar_tar_flush()
1346 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()