Lines Matching refs:error

456 void phar_entry_remove(phar_entry_data *idata, char **error) /* {{{ */  in phar_entry_remove()  argument
475 phar_flush(phar, 0, 0, 0, error); in phar_entry_remove()
484 if (error) {\
485 spprintf(error, 0, msg, fname);\
528 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_parsed_phar() argument
536 if (error) { in phar_open_parsed_phar()
537 *error = NULL; in phar_open_parsed_phar()
548 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error) in phar_open_parsed_phar()
569 if (error) { in phar_open_parsed_phar()
570 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or … in phar_open_parsed_phar()
593 if (phar && error && !(options & REPORT_ERRORS)) { in phar_open_parsed_phar()
594 efree(error); in phar_open_parsed_phar()
667 …en, zend_long halt_offset, phar_archive_data** pphar, uint32_t compression, char **error) /* {{{ */ in phar_parse_pharfile() argument
685 if (error) { in phar_parse_pharfile()
686 *error = NULL; in phar_parse_pharfile()
762 if (error) { in phar_parse_pharfile()
763 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma… in phar_parse_pharfile()
788 if (error) { in phar_parse_pharfile()
789 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
807 if (error) { in phar_parse_pharfile()
808 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname); in phar_parse_pharfile()
825 if (error) { in phar_parse_pharfile()
826 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname); in phar_parse_pharfile()
831 …ature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
835 if (error) { in phar_parse_pharfile()
836 char *save = *error; in phar_parse_pharfile()
837 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
854 if (error) { in phar_parse_pharfile()
855 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
860 …signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
863 if (error) { in phar_parse_pharfile()
864 char *save = *error; in phar_parse_pharfile()
865 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
881 if (error) { in phar_parse_pharfile()
882 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
887 …signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
890 if (error) { in phar_parse_pharfile()
891 char *save = *error; in phar_parse_pharfile()
892 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
908 if (error) { in phar_parse_pharfile()
909 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
914 …y_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
917 if (error) { in phar_parse_pharfile()
918 char *save = *error; in phar_parse_pharfile()
919 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
935 if (error) { in phar_parse_pharfile()
936 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
941 …fy_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
944 if (error) { in phar_parse_pharfile()
945 char *save = *error; in phar_parse_pharfile()
946 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
957 if (error) { in phar_parse_pharfile()
958 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname); in phar_parse_pharfile()
966 if (error) { in phar_parse_pharfile()
967 spprintf(error, 0, "phar \"%s\" does not have a signature", fname); in phar_parse_pharfile()
997 if (error) { in phar_parse_pharfile()
998 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%.*s\" under different alias \"%… in phar_parse_pharfile()
1264 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_or_create_filename() argument
1273 if (error) { in phar_open_or_create_filename()
1274 *error = NULL; in phar_open_or_create_filename()
1284 if (error) { in phar_open_or_create_filename()
1286 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be … in phar_open_or_create_filename()
1288 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the… in phar_open_or_create_filename()
1300 if (error) { in phar_open_or_create_filename()
1301 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable … in phar_open_or_create_filename()
1309 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or … in phar_open_or_create_filename()
1319 if (error) { in phar_open_or_create_filename()
1320 *error = my_error; in phar_open_or_create_filename()
1329 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1334 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1337 … phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1341 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_create_or_parse_filename() argument
1364 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S… in phar_create_or_parse_filename()
1387 if (error) { in phar_create_or_parse_filename()
1388 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname); in phar_create_or_parse_filename()
1448 if (error) { in phar_create_or_parse_filename()
1449 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another … in phar_create_or_parse_filename()
1469 if (error) { in phar_create_or_parse_filename()
1470 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,… in phar_create_or_parse_filename()
1495 …char *alias, size_t alias_len, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_from_filename() argument
1501 if (error) { in phar_open_from_filename()
1502 *error = NULL; in phar_open_from_filename()
1509 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S… in phar_open_from_filename()
1511 } else if (error && *error) { in phar_open_from_filename()
1522 if (error) { in phar_open_from_filename()
1523 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); in phar_open_from_filename()
1537 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error); in phar_open_from_filename()
1581 …size_t alias_len, uint32_t options, phar_archive_data** pphar, int is_data, char **error) /* {{{ */ in phar_open_from_fp() argument
1597 if (error) { in phar_open_from_fp()
1598 *error = NULL; in phar_open_from_fp()
1729 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error); in phar_open_from_fp()
1735 …urn phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error); in phar_open_from_fp()
1742 …har_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error); in phar_open_from_fp()
2277 int phar_open_executed_filename(char *alias, size_t alias_len, char **error) /* {{{ */ in phar_open_executed_filename() argument
2285 if (error) { in phar_open_executed_filename()
2286 *error = NULL; in phar_open_executed_filename()
2297 if (error) { in phar_open_executed_filename()
2298 spprintf(error, 0, "cannot initialize a phar outside of PHP execution"); in phar_open_executed_filename()
2304 if (error) { in phar_open_executed_filename()
2305 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar"); in phar_open_executed_filename()
2317 if (error) { in phar_open_executed_filename()
2318 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); in phar_open_executed_filename()
2331 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error); in phar_open_executed_filename()
2344 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… in phar_postprocess_file() argument
2351 if (error) { in phar_postprocess_file()
2352 *error = NULL; in phar_postprocess_file()
2361 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file … in phar_postprocess_file()
2368 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi… in phar_postprocess_file()
2381 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da… in phar_postprocess_file()
2393 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file… in phar_postprocess_file()
2422 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")… in phar_postprocess_file()
2454 zend_string *phar_create_default_stub(const char *index_php, const char *web_index, char **error) /… in phar_create_default_stub() argument
2458 if (error) { in phar_create_default_stub()
2459 *error = NULL; in phar_create_default_stub()
2475 if (error) { in phar_create_default_stub()
2476 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %zd characters long, and onl… in phar_create_default_stub()
2483 if (error) { in phar_create_default_stub()
2484 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %zd characters long, and… in phar_create_default_stub()
2499 int phar_flush(phar_archive_data *phar, char *user_stub, zend_long len, int convert, char **error) … in phar_flush() argument
2523 if (error) { in phar_flush()
2524 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname); in phar_flush()
2529 if (error) { in phar_flush()
2530 *error = NULL; in phar_flush()
2540 return phar_zip_flush(phar, user_stub, len, convert, error); in phar_flush()
2544 return phar_tar_flush(phar, user_stub, len, convert, error); in phar_flush()
2561 if (error) { in phar_flush()
2562 spprintf(error, 0, "unable to create temporary file"); in phar_flush()
2579 if (error) { in phar_flush()
2580 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname); in phar_flush()
2596 if (error) { in phar_flush()
2597 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname); in phar_flush()
2614 if (error) { in phar_flush()
2615 spprintf(error, 0, "illegal stub for phar \"%s\" (__HALT_COMPILER(); is missing)", phar->fname); in phar_flush()
2631 if (error) { in phar_flush()
2632 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname); in phar_flush()
2660 if (error) { in phar_flush()
2662 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname); in phar_flush()
2664 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname); in phar_flush()
2751 newentry = phar_open_jit(phar, entry, error); in phar_flush()
2754 efree(*error); in phar_flush()
2755 *error = NULL; in phar_flush()
2766 if (error) { in phar_flush()
2767 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
2790 if (error) { in phar_flush()
2791 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar… in phar_flush()
2794 if (error) { in phar_flush()
2795 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha… in phar_flush()
2809 if (error) { in phar_flush()
2810 spprintf(error, 0, "unable to create temporary file"); in phar_flush()
2827 if (error) { in phar_flush()
2828 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
2838 if (error) { in phar_flush()
2839 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar… in phar_flush()
2900 if (error) { in phar_flush()
2901 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname); in phar_flush()
2921 if (error) { in phar_flush()
2922 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname); in phar_flush()
2953 if (error) { in phar_flush()
2955 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", … in phar_flush()
2957 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry… in phar_flush()
2989 if (error) { in phar_flush()
2990 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s… in phar_flush()
3005 if (error) { in phar_flush()
3006 spprintf(error, 0, "unable to write manifest padding byte"); in phar_flush()
3030 if (error) { in phar_flush()
3031 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
3042 if (error) { in phar_flush()
3043 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
3058 if (error) { in phar_flush()
3059 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, … in phar_flush()
3106 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) { in phar_flush()
3107 if (error) { in phar_flush()
3108 char *save = *error; in phar_flush()
3109 spprintf(error, 0, "phar error: unable to write signature: %s", save); in phar_flush()
3167 if (error) { in phar_flush()
3168 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname); in phar_flush()
3183 if (error) { in phar_flush()
3184 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_flush()
3213 if (error) { in phar_flush()
3214 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname); in phar_flush()