Lines Matching refs:error

426 void phar_entry_remove(phar_entry_data *idata, char **error) /* {{{ */  in phar_entry_remove()  argument
445 phar_flush(phar, 0, 0, 0, error); in phar_entry_remove()
454 if (error) {\
455 spprintf(error, 0, msg, fname);\
498 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_parsed_phar() argument
506 if (error) { in phar_open_parsed_phar()
507 *error = NULL; in phar_open_parsed_phar()
518 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error) in phar_open_parsed_phar()
539 if (error) { in phar_open_parsed_phar()
540 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or … in phar_open_parsed_phar()
563 if (phar && error && !(options & REPORT_ERRORS)) { in phar_open_parsed_phar()
564 efree(error); in phar_open_parsed_phar()
742 …en, zend_long halt_offset, phar_archive_data** pphar, uint32_t compression, char **error) /* {{{ */ in phar_parse_pharfile() argument
760 if (error) { in phar_parse_pharfile()
761 *error = NULL; in phar_parse_pharfile()
837 if (error) { in phar_parse_pharfile()
838 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma… in phar_parse_pharfile()
863 if (error) { in phar_parse_pharfile()
864 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
882 if (error) { in phar_parse_pharfile()
883 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname); in phar_parse_pharfile()
900 if (error) { in phar_parse_pharfile()
901 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname); in phar_parse_pharfile()
906 …ature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
910 if (error) { in phar_parse_pharfile()
911 char *save = *error; in phar_parse_pharfile()
912 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
929 if (error) { in phar_parse_pharfile()
930 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
935 …signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
938 if (error) { in phar_parse_pharfile()
939 char *save = *error; in phar_parse_pharfile()
940 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
956 if (error) { in phar_parse_pharfile()
957 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
962 …signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
965 if (error) { in phar_parse_pharfile()
966 char *save = *error; in phar_parse_pharfile()
967 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
983 if (error) { in phar_parse_pharfile()
984 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
989 …y_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
992 if (error) { in phar_parse_pharfile()
993 char *save = *error; in phar_parse_pharfile()
994 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
1010 if (error) { in phar_parse_pharfile()
1011 spprintf(error, 0, "phar \"%s\" has a broken signature", fname); in phar_parse_pharfile()
1016 …fy_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error)) { in phar_parse_pharfile()
1019 if (error) { in phar_parse_pharfile()
1020 char *save = *error; in phar_parse_pharfile()
1021 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error); in phar_parse_pharfile()
1032 if (error) { in phar_parse_pharfile()
1033 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname); in phar_parse_pharfile()
1041 if (error) { in phar_parse_pharfile()
1042 spprintf(error, 0, "phar \"%s\" does not have a signature", fname); in phar_parse_pharfile()
1072 if (error) { in phar_parse_pharfile()
1073 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%.*s\" under different alias \"%… in phar_parse_pharfile()
1315 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_or_create_filename() argument
1324 if (error) { in phar_open_or_create_filename()
1325 *error = NULL; in phar_open_or_create_filename()
1335 if (error) { in phar_open_or_create_filename()
1337 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be … in phar_open_or_create_filename()
1339 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the… in phar_open_or_create_filename()
1351 if (error) { in phar_open_or_create_filename()
1352 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable … in phar_open_or_create_filename()
1360 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or … in phar_open_or_create_filename()
1370 if (error) { in phar_open_or_create_filename()
1371 *error = my_error; in phar_open_or_create_filename()
1380 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1385 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1388 … phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1392 … alias_len, zend_bool is_data, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_create_or_parse_filename() argument
1415 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S… in phar_create_or_parse_filename()
1438 if (error) { in phar_create_or_parse_filename()
1439 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname); in phar_create_or_parse_filename()
1499 if (error) { in phar_create_or_parse_filename()
1500 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another … in phar_create_or_parse_filename()
1520 if (error) { in phar_create_or_parse_filename()
1521 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,… in phar_create_or_parse_filename()
1546 …char *alias, size_t alias_len, uint32_t options, phar_archive_data** pphar, char **error) /* {{{ */ in phar_open_from_filename() argument
1552 if (error) { in phar_open_from_filename()
1553 *error = NULL; in phar_open_from_filename()
1560 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S… in phar_open_from_filename()
1562 } else if (error && *error) { in phar_open_from_filename()
1573 if (error) { in phar_open_from_filename()
1574 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); in phar_open_from_filename()
1588 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error); in phar_open_from_filename()
1632 …size_t alias_len, uint32_t options, phar_archive_data** pphar, int is_data, char **error) /* {{{ */ in phar_open_from_fp() argument
1648 if (error) { in phar_open_from_fp()
1649 *error = NULL; in phar_open_from_fp()
1780 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error); in phar_open_from_fp()
1786 …urn phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error); in phar_open_from_fp()
1793 …har_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error); in phar_open_from_fp()
2328 int phar_open_executed_filename(char *alias, size_t alias_len, char **error) /* {{{ */ in phar_open_executed_filename() argument
2336 if (error) { in phar_open_executed_filename()
2337 *error = NULL; in phar_open_executed_filename()
2348 if (error) { in phar_open_executed_filename()
2349 spprintf(error, 0, "cannot initialize a phar outside of PHP execution"); in phar_open_executed_filename()
2355 if (error) { in phar_open_executed_filename()
2356 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar"); in phar_open_executed_filename()
2368 if (error) { in phar_open_executed_filename()
2369 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); in phar_open_executed_filename()
2382 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error); in phar_open_executed_filename()
2395 int phar_postprocess_file(phar_entry_data *idata, uint32_t crc32, char **error, int process_zip) /*… in phar_postprocess_file() argument
2402 if (error) { in phar_postprocess_file()
2403 *error = NULL; in phar_postprocess_file()
2412 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file … in phar_postprocess_file()
2419 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi… in phar_postprocess_file()
2432 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da… in phar_postprocess_file()
2444 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file… in phar_postprocess_file()
2473 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")… in phar_postprocess_file()
2505 zend_string *phar_create_default_stub(const char *index_php, const char *web_index, char **error) /… in phar_create_default_stub() argument
2509 if (error) { in phar_create_default_stub()
2510 *error = NULL; in phar_create_default_stub()
2526 if (error) { in phar_create_default_stub()
2527 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %zd characters long, and onl… in phar_create_default_stub()
2534 if (error) { in phar_create_default_stub()
2535 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %zd characters long, and… in phar_create_default_stub()
2550 int phar_flush(phar_archive_data *phar, char *user_stub, zend_long len, int convert, char **error) … in phar_flush() argument
2574 if (error) { in phar_flush()
2575 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname); in phar_flush()
2580 if (error) { in phar_flush()
2581 *error = NULL; in phar_flush()
2591 return phar_zip_flush(phar, user_stub, len, convert, error); in phar_flush()
2595 return phar_tar_flush(phar, user_stub, len, convert, error); in phar_flush()
2612 if (error) { in phar_flush()
2613 spprintf(error, 0, "unable to create temporary file"); in phar_flush()
2630 if (error) { in phar_flush()
2631 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname); in phar_flush()
2647 if (error) { in phar_flush()
2648 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname); in phar_flush()
2665 if (error) { in phar_flush()
2666 spprintf(error, 0, "illegal stub for phar \"%s\" (__HALT_COMPILER(); is missing)", phar->fname); in phar_flush()
2682 if (error) { in phar_flush()
2683 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname); in phar_flush()
2711 if (error) { in phar_flush()
2713 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname); in phar_flush()
2715 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname); in phar_flush()
2799 newentry = phar_open_jit(phar, entry, error); in phar_flush()
2802 efree(*error); in phar_flush()
2803 *error = NULL; in phar_flush()
2814 if (error) { in phar_flush()
2815 …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 gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar… in phar_flush()
2842 if (error) { in phar_flush()
2843 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha… in phar_flush()
2857 if (error) { in phar_flush()
2858 spprintf(error, 0, "unable to create temporary file"); in phar_flush()
2875 if (error) { in phar_flush()
2876 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
2886 if (error) { in phar_flush()
2887 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar… in phar_flush()
2948 if (error) { in phar_flush()
2949 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname); in phar_flush()
2969 if (error) { in phar_flush()
2970 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname); in phar_flush()
3002 if (error) { in phar_flush()
3004 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", … in phar_flush()
3006 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry… in phar_flush()
3039 if (error) { in phar_flush()
3040 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s… in phar_flush()
3055 if (error) { in phar_flush()
3056 spprintf(error, 0, "unable to write manifest padding byte"); in phar_flush()
3080 if (error) { in phar_flush()
3081 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
3092 if (error) { in phar_flush()
3093 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-… in phar_flush()
3108 if (error) { in phar_flush()
3109 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, … in phar_flush()
3156 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) { in phar_flush()
3157 if (error) { in phar_flush()
3158 char *save = *error; in phar_flush()
3159 spprintf(error, 0, "phar error: unable to write signature: %s", save); in phar_flush()
3217 if (error) { in phar_flush()
3218 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname); in phar_flush()
3233 if (error) { in phar_flush()
3234 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old… in phar_flush()
3263 if (error) { in phar_flush()
3264 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname); in phar_flush()