Lines Matching refs:error
124 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ … in phar_open_or_create_tar()
127 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC); in phar_open_or_create_tar()
151 if (error) { in phar_open_or_create_tar()
152 …spprintf(error, 4096, "phar tar error: \"%s\" already exists as a regular phar and must be deleted… in phar_open_or_create_tar()
195 …n, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ … in phar_parse_tarfile()
205 if (error) { in phar_parse_tarfile()
206 *error = NULL; in phar_parse_tarfile()
215 if (error) { in phar_parse_tarfile()
216 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); in phar_parse_tarfile()
262 if (error) { in phar_parse_tarfile()
263 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 byt… in phar_parse_tarfile()
273 if (error) { in phar_parse_tarfile()
274 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); in phar_parse_tarfile()
288 …har->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &myphar->sig_len, error TSRMLS_CC)) { in phar_parse_tarfile()
289 if (error) { in phar_parse_tarfile()
290 char *save = *error; in phar_parse_tarfile()
291 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname,… in phar_parse_tarfile()
302 if (error) { in phar_parse_tarfile()
303 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
314 if (error) { in phar_parse_tarfile()
315 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
329 if (error) { in phar_parse_tarfile()
330 spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); in phar_parse_tarfile()
343 if (error) { in phar_parse_tarfile()
344 … spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); in phar_parse_tarfile()
355 if (error) { in phar_parse_tarfile()
356 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
371 if (error) { in phar_parse_tarfile()
372 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
383 if (error) { in phar_parse_tarfile()
384 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
439 if (error) { in phar_parse_tarfile()
440 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\… in phar_parse_tarfile()
471 if (error) { in phar_parse_tarfile()
472 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
492 if (error) { in phar_parse_tarfile()
493 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
504 if (error) { in phar_parse_tarfile()
505 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
524 if (error) { in phar_parse_tarfile()
525 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
538 if (error) { in phar_parse_tarfile()
539 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
554 if (error) { in phar_parse_tarfile()
555 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
566 if (error) { in phar_parse_tarfile()
567 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
585 if (error) { in phar_parse_tarfile()
586 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
612 if (error) { in phar_parse_tarfile()
613 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); in phar_parse_tarfile()
629 if (error) { in phar_parse_tarfile()
630 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
644 if (error) { in phar_parse_tarfile()
645 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
675 char **error; member
705 if (fp->error) { in phar_tar_writeheaders()
706 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders()
715 if (fp->error) { in phar_tar_writeheaders()
716 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders()
729 if (fp->error) { in phar_tar_writeheaders()
730 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders()
736 if (fp->error) { in phar_tar_writeheaders()
737 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders()
755 if (fp->error) { in phar_tar_writeheaders()
756 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders()
765 if (fp->error) { in phar_tar_writeheaders()
766 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders()
775 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0 TSRMLS_CC)) { in phar_tar_writeheaders()
780 if (fp->error) { in phar_tar_writeheaders()
781 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders()
787 if (fp->error) { in phar_tar_writeheaders()
788 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders()
827 int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ in phar_tar_setmetadata()
851 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
855 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
868 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
873 return phar_tar_setmetadata(entry->phar->metadata, entry, error TSRMLS_CC); in phar_tar_setupmetadata()
899 ret = phar_tar_setmetadata(entry->metadata, metadata, error TSRMLS_CC); in phar_tar_setupmetadata()
912 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
916 return phar_tar_setmetadata(entry->metadata, metadata, error TSRMLS_CC); in phar_tar_setupmetadata()
920 …ar_archive_data *phar, char *user_stub, long len, int defaultstub, char **error TSRMLS_DC) /* {{{ … in phar_tar_flush()
940 if (error) { in phar_tar_flush()
941 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
956 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
960 if (error) { in phar_tar_flush()
961 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
969 if (error) { in phar_tar_flush()
970 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
984 if (error) { in phar_tar_flush()
985 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
997 if (error) { in phar_tar_flush()
998 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1010 if (error) { in phar_tar_flush()
1011 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1024 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1031 if (error) { in phar_tar_flush()
1032 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1052 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1057 if (error) { in phar_tar_flush()
1058 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1072 if (error) { in phar_tar_flush()
1073 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1085 if (error) { in phar_tar_flush()
1086 spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1104 if (error) { in phar_tar_flush()
1105 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1115 pass.error = error; in phar_tar_flush()
1122 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(phar->metadata, mentry, error TSRMLS_CC)) { in phar_tar_flush()
1138 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1145 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(phar->metadata, mentry, error TSRMLS_CC)) { in phar_tar_flush()
1157 if (error && *error) { in phar_tar_flush()
1171 …if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error TSRMLS_CC… in phar_tar_flush()
1172 if (error) { in phar_tar_flush()
1173 char *save = *error; in phar_tar_flush()
1174 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1190 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1207 if (error) { in phar_tar_flush()
1208 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1223 if (error && *error) { in phar_tar_flush()
1243 if (error && *error) { in phar_tar_flush()
1269 if (error) { in phar_tar_flush()
1270 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1293 if (error) { in phar_tar_flush()
1294 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()