Lines Matching refs:error

460 void phar_entry_remove(phar_entry_data *idata, char **error) /* {{{ */  in phar_entry_remove()  argument
479 phar_flush(phar, 0, 0, 0, error); in phar_entry_remove()
488 if (error) {\
489 spprintf(error, 0, msg, fname);\
532 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ argument
539 if (error) {
540 *error = NULL;
546 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error)
553 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error)
569 if (error) {
570 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
590 if (phar && error && !(options & REPORT_ERRORS)) {
591 efree(error);
664 …en, zend_long halt_offset, phar_archive_data** pphar, uint32_t compression, char **error) /* {{{ */ argument
682 if (error) {
683 *error = NULL;
759 if (error) {
760 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma…
785 if (error) {
786 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
804 if (error) {
805 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname);
822 if (error) {
823 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname);
828 …ature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error)) {
832 if (error) {
833 char *save = *error;
834 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error);
852 if (error) {
853 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
858 …signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error)) {
861 if (error) {
862 char *save = *error;
863 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error);
879 if (error) {
880 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
885 …signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error)) {
888 if (error) {
889 char *save = *error;
890 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error);
903 if (error) {
904 spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname);
917 if (error) {
918 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
923 …y_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error)) {
926 if (error) {
927 char *save = *error;
928 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error);
944 if (error) {
945 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
950 …fy_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error)) {
953 if (error) {
954 char *save = *error;
955 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error);
966 if (error) {
967 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname);
975 if (error) {
976 spprintf(error, 0, "phar \"%s\" does not have a signature", fname);
1006 if (error) {
1007 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%.*s\" under different alias \"%…
1273 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ argument
1282 if (error) {
1283 *error = NULL;
1293 if (error) {
1295 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be …
1297 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the…
1309 if (error) {
1310 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable …
1318 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
1328 if (error) {
1329 *error = my_error;
1338 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1343 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1346 … phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1350 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ argument
1373 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S…
1396 if (error) {
1397 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname);
1457 if (error) {
1458 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another …
1478 if (error) {
1479 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,…
1504 …char *alias, size_t alias_len, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ argument
1510 if (error) {
1511 *error = NULL;
1518 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S…
1520 } else if (error && *error) {
1531 if (error) {
1532 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
1546 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error);
1590 …size_t alias_len, uint32_t options, phar_archive_data** pphar, int is_data, char **error) /* {{{ */ argument
1605 if (error) {
1606 *error = NULL;
1729 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error);
1735 …urn phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error);
1742 …har_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error);
2284 int phar_open_executed_filename(char *alias, size_t alias_len, char **error) /* {{{ */ argument
2292 if (error) {
2293 *error = NULL;
2304 if (error) {
2305 spprintf(error, 0, "cannot initialize a phar outside of PHP execution");
2311 if (error) {
2312 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar");
2324 if (error) {
2325 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
2338 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error);
2351 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… argument
2358 if (error) {
2359 *error = NULL;
2368 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file …
2375 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi…
2388 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da…
2400 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file…
2429 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")…
2461 zend_string *phar_create_default_stub(const char *index_php, const char *web_index, char **error) /… argument
2465 if (error) {
2466 *error = NULL;
2482 if (error) {
2483 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %zd characters long, and onl…
2490 if (error) {
2491 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %zd characters long, and…
2506 int phar_flush(phar_archive_data *phar, char *user_stub, zend_long len, int convert, char **error) … argument
2529 if (error) {
2530 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname);
2535 if (error) {
2536 *error = NULL;
2546 return phar_zip_flush(phar, user_stub, len, convert, error);
2550 return phar_tar_flush(phar, user_stub, len, convert, error);
2567 if (error) {
2568 spprintf(error, 0, "unable to create temporary file");
2585 if (error) {
2586 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname);
2602 if (error) {
2603 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname);
2620 if (error) {
2621 spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname);
2637 if (error) {
2638 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname);
2666 if (error) {
2668 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname);
2670 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname);
2762 newentry = phar_open_jit(phar, entry, error);
2765 efree(*error);
2766 *error = NULL;
2777 if (error) {
2778 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2801 if (error) {
2802 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar…
2805 if (error) {
2806 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha…
2817 if (error) {
2818 spprintf(error, 0, "unable to create temporary file");
2832 if (error) {
2833 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2843 if (error) {
2844 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar…
2906 if (error) {
2907 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname);
2927 if (error) {
2928 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname);
2966 if (error) {
2968 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", …
2970 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry…
3002 if (error) {
3003 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s…
3018 if (error) {
3019 spprintf(error, 0, "unable to write manifest padding byte");
3050 if (error) {
3051 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3062 if (error) {
3063 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3078 if (error) {
3079 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, …
3124 if (error) {
3125 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash…
3133 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) {
3134 if (error) {
3135 char *save = *error;
3136 spprintf(error, 0, "phar error: unable to write signature: %s", save);
3194 if (error) {
3195 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname);
3210 if (error) {
3211 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old…
3240 if (error) {
3241 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname);