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()
213 …_t alias_len, phar_archive_data** pphar, int is_data, uint32_t compression, char **error) /* {{{ */ in phar_parse_tarfile() argument
224 if (error) { in phar_parse_tarfile()
225 *error = NULL; in phar_parse_tarfile()
234 if (error) { in phar_parse_tarfile()
235 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
297 if (error) { in phar_parse_tarfile()
298 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
308 if (error) { in phar_parse_tarfile()
309 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
323 … - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &sig_len, error)) { in phar_parse_tarfile()
324 if (error) { in phar_parse_tarfile()
325 char *save = *error; in phar_parse_tarfile()
326 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
338 if (error) { in phar_parse_tarfile()
339 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
350 if (error) { in phar_parse_tarfile()
351 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
365 if (error) { in phar_parse_tarfile()
366 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
379 if (error) { in phar_parse_tarfile()
380 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
391 if (error) { in phar_parse_tarfile()
392 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
407 if (error) { in phar_parse_tarfile()
408 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
419 if (error) { in phar_parse_tarfile()
420 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
475 if (error) { in phar_parse_tarfile()
476 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
507 if (error) { in phar_parse_tarfile()
508 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
530 if (error) { in phar_parse_tarfile()
531 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
542 if (error) { in phar_parse_tarfile()
543 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
562 if (error) { in phar_parse_tarfile()
563 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
576 if (error) { in phar_parse_tarfile()
577 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
593 if (error) { in phar_parse_tarfile()
594 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, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
624 if (error) { in phar_parse_tarfile()
625 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
651 if (error) { in phar_parse_tarfile()
652 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
668 if (error) { in phar_parse_tarfile()
669 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
683 if (error) { in phar_parse_tarfile()
684 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
714 char **error; member
743 if (fp->error) { in phar_tar_writeheaders_int()
744 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
753 if (fp->error) { in phar_tar_writeheaders_int()
754 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders_int()
767 if (fp->error) { in phar_tar_writeheaders_int()
768 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders_int()
774 if (fp->error) { in phar_tar_writeheaders_int()
775 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders_int()
785 if (fp->error) { in phar_tar_writeheaders_int()
786 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, link \"%s\" is too long for fo… in phar_tar_writeheaders_int()
798 if (fp->error) { in phar_tar_writeheaders_int()
799 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
808 if (fp->error) { in phar_tar_writeheaders_int()
809 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
818 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
823 if (fp->error) { in phar_tar_writeheaders_int()
824 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
830 if (fp->error) { in phar_tar_writeheaders_int()
831 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders_int()
876 int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error) /* {{{ */ in phar_tar_setmetadata() argument
899 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
903 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
916 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
921 return phar_tar_setmetadata(&entry->phar->metadata, entry, error); in phar_tar_setupmetadata()
947 ret = phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
960 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
964 return phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
968 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, char **error) /* {{{ */ in phar_tar_flush() argument
991 if (error) { in phar_tar_flush()
992 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1008 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1012 if (error) { in phar_tar_flush()
1013 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1035 if (error) { in phar_tar_flush()
1036 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1062 if (error) { in phar_tar_flush()
1063 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1075 if (error) { in phar_tar_flush()
1076 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1089 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1096 if (error) { in phar_tar_flush()
1097 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1117 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1122 if (error) { in phar_tar_flush()
1123 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1137 if (error) { in phar_tar_flush()
1138 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1162 if (error) { in phar_tar_flush()
1163 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1173 pass.error = error; in phar_tar_flush()
1180 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata, mentry, error)) { in phar_tar_flush()
1196 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1203 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata, mentry, error)) { in phar_tar_flush()
1215 if (error && *error) { in phar_tar_flush()
1229 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) { in phar_tar_flush()
1230 if (error) { in phar_tar_flush()
1231 char *save = *error; in phar_tar_flush()
1232 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1248 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1265 if (error) { in phar_tar_flush()
1266 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1281 if (error && *error) { in phar_tar_flush()
1301 if (error && *error) { in phar_tar_flush()
1327 if (error) { in phar_tar_flush()
1328 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1351 if (error) { in phar_tar_flush()
1352 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()