Lines Matching refs:error

127 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …  in phar_open_or_create_tar()
130 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC); 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 …n, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ … in phar_parse_tarfile()
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 …har->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &myphar->sig_len, error TSRMLS_CC)) { 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()
490 if (error) { in phar_parse_tarfile()
491 …spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file… in phar_parse_tarfile()
513 if (error) { in phar_parse_tarfile()
514 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"… in phar_parse_tarfile()
525 if (error) { in phar_parse_tarfile()
526 …spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, … in phar_parse_tarfile()
545 if (error) { in phar_parse_tarfile()
546 … spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); in phar_parse_tarfile()
559 if (error) { in phar_parse_tarfile()
560 spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); in phar_parse_tarfile()
576 if (error) { in phar_parse_tarfile()
577 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
588 if (error) { in phar_parse_tarfile()
589 spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); in phar_parse_tarfile()
607 if (error) { in phar_parse_tarfile()
608 spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); in phar_parse_tarfile()
634 if (error) { in phar_parse_tarfile()
635 spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", 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\", alias is already in use", … in phar_parse_tarfile()
666 if (error) { in phar_parse_tarfile()
667 …spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", … in phar_parse_tarfile()
697 char **error; member
727 if (fp->error) { in phar_tar_writeheaders()
728 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders()
737 if (fp->error) { in phar_tar_writeheaders()
738 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long fo… in phar_tar_writeheaders()
751 if (fp->error) { in phar_tar_writeheaders()
752 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large f… in phar_tar_writeheaders()
758 if (fp->error) { in phar_tar_writeheaders()
759 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file… in phar_tar_writeheaders()
777 if (fp->error) { in phar_tar_writeheaders()
778 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too… in phar_tar_writeheaders()
787 if (fp->error) { in phar_tar_writeheaders()
788 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could … in phar_tar_writeheaders()
797 if (FAILURE == phar_open_entry_fp(entry, fp->error, 0 TSRMLS_CC)) { in phar_tar_writeheaders()
802 if (fp->error) { in phar_tar_writeheaders()
803 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders()
809 if (fp->error) { in phar_tar_writeheaders()
810 …spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could … in phar_tar_writeheaders()
849 int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ in phar_tar_setmetadata()
873 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_setmetadata()
877 …spprintf(error, 0, "phar tar error: unable to write metadata to magic metadata file \"%s\"", entry… in phar_tar_setmetadata()
890 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local
898 return phar_tar_setmetadata(entry->phar->metadata, entry, error TSRMLS_CC); in phar_tar_setupmetadata()
924 ret = phar_tar_setmetadata(entry->metadata, metadata, error TSRMLS_CC); in phar_tar_setupmetadata()
937 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for file \"%s\""… in phar_tar_setupmetadata()
941 return phar_tar_setmetadata(entry->metadata, metadata, error TSRMLS_CC); in phar_tar_setupmetadata()
945 …ar_archive_data *phar, char *user_stub, long len, int defaultstub, char **error TSRMLS_DC) /* {{{ … in phar_tar_flush()
965 if (error) { in phar_tar_flush()
966 spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
981 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
985 if (error) { in phar_tar_flush()
986 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
994 if (error) { in phar_tar_flush()
995 spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1009 if (error) { in phar_tar_flush()
1010 …spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fn… in phar_tar_flush()
1022 if (error) { in phar_tar_flush()
1023 …spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fnam… in phar_tar_flush()
1035 if (error) { in phar_tar_flush()
1036 spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1049 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1056 if (error) { in phar_tar_flush()
1057 … spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1077 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1082 if (error) { in phar_tar_flush()
1083 …spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" … in phar_tar_flush()
1097 if (error) { in phar_tar_flush()
1098 spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1110 if (error) { in phar_tar_flush()
1111 spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); in phar_tar_flush()
1129 if (error) { in phar_tar_flush()
1130 spprintf(error, 0, "unable to create temporary file"); in phar_tar_flush()
1140 pass.error = error; in phar_tar_flush()
1147 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(phar->metadata, mentry, error TSRMLS_CC)) { in phar_tar_flush()
1163 …spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive… in phar_tar_flush()
1170 if (ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata(phar->metadata, mentry, error TSRMLS_CC)) { in phar_tar_flush()
1182 if (error && *error) { in phar_tar_flush()
1196 …if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error TSRMLS_CC… in phar_tar_flush()
1197 if (error) { in phar_tar_flush()
1198 char *save = *error; in phar_tar_flush()
1199 spprintf(error, 0, "phar error: unable to write signature to tar-based phar: %s", save); in phar_tar_flush()
1215 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_tar_flush()
1232 if (error) { in phar_tar_flush()
1233 spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); in phar_tar_flush()
1248 if (error && *error) { in phar_tar_flush()
1268 if (error && *error) { in phar_tar_flush()
1294 if (error) { in phar_tar_flush()
1295 spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); in phar_tar_flush()
1318 if (error) { in phar_tar_flush()
1319 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_tar_flush()