Lines Matching refs:error
341 …en, char *path, size_t path_len, const char *mode, char allow_dir, char **error, int security) /* … in phar_get_entry_data() argument
356 if (error) { in phar_get_entry_data()
357 *error = NULL; in phar_get_entry_data()
360 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
365 if (error) { in phar_get_entry_data()
366 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
372 if (error) { in phar_get_entry_data()
373 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
379 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
386 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
396 if (error) { in phar_get_entry_data()
397 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
406 if (error) { in phar_get_entry_data()
407 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… in phar_get_entry_data()
413 if (error) { in phar_get_entry_data()
414 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readab… in phar_get_entry_data()
446 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
461 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
465 if (FAILURE == phar_separate_entry_fp(entry, error)) { in phar_get_entry_data()
470 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_get_entry_data()
507 …en, char *path, size_t path_len, const char *mode, char allow_dir, char **error, int security) /* … in phar_get_or_create_entry_data() argument
521 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
525 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
532 if (error) { in phar_get_or_create_entry_data()
533 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
539 if (error) { in phar_get_or_create_entry_data()
540 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
555 if (error) { in phar_get_or_create_entry_data()
556 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
590 if (error) { in phar_get_or_create_entry_data()
591 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
640 int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error) /* {{{ */ in phar_copy_entry_fp() argument
644 if (FAILURE == phar_open_entry_fp(source, error, 1)) { in phar_copy_entry_fp()
659 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
672 if (error) { in phar_copy_entry_fp()
673 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
684 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links) /* {{{ */ in phar_open_entry_fp() argument
696 return phar_open_entry_fp(link_entry, error, 1); in phar_open_entry_fp()
718 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
728 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
737 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
746 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
759 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… in phar_open_entry_fp()
772 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
783 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
793 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0)) { in phar_open_entry_fp()
800 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_create_writeable_entry() argument
819 if (error) { in phar_create_writeable_entry()
820 *error = NULL; in phar_create_writeable_entry()
833 if (error) { in phar_create_writeable_entry()
834 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
853 int phar_separate_entry_fp(phar_entry_info *entry, char **error) /* {{{ */ in phar_separate_entry_fp() argument
858 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_separate_entry_fp()
868 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
879 if (error) { in phar_separate_entry_fp()
880 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
902 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_open_jit() argument
904 if (error) { in phar_open_jit()
905 *error = NULL; in phar_open_jit()
908 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_open_jit()
912 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
954 …ta **archive, char *fname, size_t fname_len, char *alias, size_t alias_len, char **error) /* {{{ */ in phar_get_archive() argument
962 if (error) { in phar_get_archive()
963 *error = NULL; in phar_get_archive()
973 if (error) { in phar_get_archive()
974 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1002 if (error) { in phar_get_archive()
1003 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1006 if (error) { in phar_get_archive()
1007 efree(*error); in phar_get_archive()
1008 *error = NULL; in phar_get_archive()
1041 if (error) { in phar_get_archive()
1042 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1071 if (error) { in phar_get_archive()
1072 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1198 …t_entry_info(phar_archive_data *phar, char *path, size_t path_len, char **error, int security) /* … in phar_get_entry_info() argument
1200 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security); in phar_get_entry_info()
1208 …ir(phar_archive_data *phar, char *path, size_t path_len, char dir, char **error, int security) /* … in phar_get_entry_info_dir() argument
1220 if (error) { in phar_get_entry_info_dir()
1221 *error = NULL; in phar_get_entry_info_dir()
1225 if (error) { in phar_get_entry_info_dir()
1226 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1232 if (error) { in phar_get_entry_info_dir()
1233 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1239 if (error) { in phar_get_entry_info_dir()
1240 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1262 if (error) { in phar_get_entry_info_dir()
1263 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1269 if (error) { in phar_get_entry_info_dir()
1270 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1302 if (error) { in phar_get_entry_info_dir()
1303 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1309 if (error) { in phar_get_entry_info_dir()
1310 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1324 if (error) { in phar_get_entry_info_dir()
1325 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1333 if (error) { in phar_get_entry_info_dir()
1334 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1342 if (error) { in phar_get_entry_info_dir()
1343 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1351 if (error) { in phar_get_entry_info_dir()
1352 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1484 …*sig, size_t sig_len, char *fname, char **signature, size_t *signature_len, char **error) /* {{{ */ in phar_verify_signature() argument
1517 if (error) { in phar_verify_signature()
1518 spprintf(error, 0, "openssl not loaded"); in phar_verify_signature()
1532 if (error) { in phar_verify_signature()
1533 spprintf(error, 0, "openssl public key could not be read"); in phar_verify_signature()
1547 if (error) { in phar_verify_signature()
1548 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1564 if (error) { in phar_verify_signature()
1565 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1575 if (error) { in phar_verify_signature()
1576 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1586 if (error) { in phar_verify_signature()
1587 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1618 if (error) { in phar_verify_signature()
1619 spprintf(error, 0, "broken openssl signature"); in phar_verify_signature()
1637 if (error) { in phar_verify_signature()
1638 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1663 if (error) { in phar_verify_signature()
1664 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1677 if (error) { in phar_verify_signature()
1678 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1703 if (error) { in phar_verify_signature()
1704 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1717 if (error) { in phar_verify_signature()
1718 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1743 if (error) { in phar_verify_signature()
1744 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1757 if (error) { in phar_verify_signature()
1758 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1783 if (error) { in phar_verify_signature()
1784 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1793 if (error) { in phar_verify_signature()
1794 spprintf(error, 0, "broken or unsupported signature"); in phar_verify_signature()
1802 …ive_data *phar, php_stream *fp, char **signature, size_t *signature_length, char **error) /* {{{ */ in phar_create_signature() argument
1870 if (error) { in phar_create_signature()
1871 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1880 if (error) { in phar_create_signature()
1881 spprintf(error, 0, "unable to process private key"); in phar_create_signature()
1889 if (error) { in phar_create_signature()
1890 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1901 if (error) { in phar_create_signature()
1902 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1911 if (error) { in phar_create_signature()
1912 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1921 if (error) { in phar_create_signature()
1922 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1937 if (error) { in phar_create_signature()
1938 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()