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 … alias_len, phar_archive_data** pphar, int is_data, php_uint32 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()
774 if (fp->error) { in phar_tar_writeheaders_int()
775 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders_int()
784 if (fp->error) { in phar_tar_writeheaders_int()
785 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders_int()
794 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { in phar_tar_writeheaders_int()
799 if (fp->error) { in phar_tar_writeheaders_int()
800 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … 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, contents of file \"%s\" could … in phar_tar_writeheaders_int()
852 int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error) /* {{{ */ in phar_tar_setmetadata() argument
875 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
879 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
892 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
897 return phar_tar_setmetadata(&entry->phar->metadata, entry, error); in phar_tar_setupmetadata()
923 ret = phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
936 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
940 return phar_tar_setmetadata(&entry->metadata, metadata, error); in phar_tar_setupmetadata()
944 …h(phar_archive_data *phar, char *user_stub, zend_long len, int defaultstub, char **error) /* {{{ */ in phar_tar_flush() argument
964 if (error) { in phar_tar_flush()
965 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
980 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
984 if (error) { in phar_tar_flush()
985 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
993 if (error) { in phar_tar_flush()
994 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1008 if (error) { in phar_tar_flush()
1009 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1035 if (error) { in phar_tar_flush()
1036 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1048 if (error) { in phar_tar_flush()
1049 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1062 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 create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1090 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1095 if (error) { in phar_tar_flush()
1096 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1110 if (error) { in phar_tar_flush()
1111 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1123 if (error) { in phar_tar_flush()
1124 spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1142 if (error) { in phar_tar_flush()
1143 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1153 pass.error = error; in phar_tar_flush()
1160 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata, mentry, error)) { in phar_tar_flush()
1176 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1183 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(&phar->metadata, mentry, error)) { in phar_tar_flush()
1195 if (error && *error) { in phar_tar_flush()
1209 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) { in phar_tar_flush()
1210 if (error) { in phar_tar_flush()
1211 char *save = *error; in phar_tar_flush()
1212 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1228 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1245 if (error) { in phar_tar_flush()
1246 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1261 if (error && *error) { in phar_tar_flush()
1281 if (error && *error) { in phar_tar_flush()
1307 if (error) { in phar_tar_flush()
1308 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1331 if (error) { in phar_tar_flush()
1332 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()