Lines Matching refs:error
127 …*alias, int alias_len, int is_data, int 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()
205 …nt alias_len, phar_archive_data** pphar, int is_data, 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()
279 if (error) { in phar_parse_tarfile()
280 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
290 if (error) { in phar_parse_tarfile()
291 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
305 …- 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &myphar->sig_len, error)) { in phar_parse_tarfile()
306 if (error) { in phar_parse_tarfile()
307 char *save = *error; in phar_parse_tarfile()
308 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
319 if (error) { in phar_parse_tarfile()
320 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
331 if (error) { in phar_parse_tarfile()
332 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\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
360 if (error) { in phar_parse_tarfile()
361 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
372 if (error) { in phar_parse_tarfile()
373 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", 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()
400 if (error) { in phar_parse_tarfile()
401 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
456 if (error) { in phar_parse_tarfile()
457 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
488 if (error) { in phar_parse_tarfile()
489 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
511 if (error) { in phar_parse_tarfile()
512 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
523 if (error) { in phar_parse_tarfile()
524 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
543 if (error) { in phar_parse_tarfile()
544 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
557 if (error) { in phar_parse_tarfile()
558 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
574 if (error) { in phar_parse_tarfile()
575 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
586 if (error) { in phar_parse_tarfile()
587 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
605 if (error) { in phar_parse_tarfile()
606 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
632 if (error) { in phar_parse_tarfile()
633 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", 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\", alias is already in use", … in phar_parse_tarfile()
664 if (error) { in phar_parse_tarfile()
665 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
695 char **error; member
724 if (fp->error) { in phar_tar_writeheaders_int()
725 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
734 if (fp->error) { in phar_tar_writeheaders_int()
735 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
748 if (fp->error) { in phar_tar_writeheaders_int()
749 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… 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, file modification time of file… in phar_tar_writeheaders_int()
766 if (fp->error) { in phar_tar_writeheaders_int()
767 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, link \"%s\" is too long for fo… in phar_tar_writeheaders_int()
779 if (fp->error) { in phar_tar_writeheaders_int()
780 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
789 if (fp->error) { in phar_tar_writeheaders_int()
790 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
799 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
804 if (fp->error) { in phar_tar_writeheaders_int()
805 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
811 if (fp->error) { in phar_tar_writeheaders_int()
812 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
857 int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error) /* {{{ */ in phar_tar_setmetadata() argument
880 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
884 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
897 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
902 return phar_tar_setmetadata(&entry->phar->metadata, entry, error); in phar_tar_setupmetadata()
928 ret = phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
941 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
945 return phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
949 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, char **error) /* {{{ */ in phar_tar_flush() argument
971 if (error) { in phar_tar_flush()
972 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
988 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
992 if (error) { in phar_tar_flush()
993 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1003 if (error) { in phar_tar_flush()
1004 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1022 if (error) { in phar_tar_flush()
1023 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1049 if (error) { in phar_tar_flush()
1050 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1062 if (error) { in phar_tar_flush()
1063 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1076 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1083 if (error) { in phar_tar_flush()
1084 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1104 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1109 if (error) { in phar_tar_flush()
1110 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1124 if (error) { in phar_tar_flush()
1125 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1137 if (error) { in phar_tar_flush()
1138 spprintf(error, 0, "unable to overwrite 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, 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, 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()