Lines Matching refs:error

352 …e_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) /* …  in phar_get_entry_data()  argument
367 if (error) { in phar_get_entry_data()
368 *error = NULL; in phar_get_entry_data()
371 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
376 if (error) { in phar_get_entry_data()
377 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
383 if (error) { in phar_get_entry_data()
384 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
390 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
397 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
407 if (error) { in phar_get_entry_data()
408 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
417 if (error) { in phar_get_entry_data()
418 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… in phar_get_entry_data()
424 if (error) { in phar_get_entry_data()
425 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readab… in phar_get_entry_data()
457 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
472 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
476 if (FAILURE == phar_separate_entry_fp(entry, error)) { in phar_get_entry_data()
481 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_get_entry_data()
518 …e_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) /* … in phar_get_or_create_entry_data() argument
532 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
536 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
543 if (error) { in phar_get_or_create_entry_data()
544 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
550 if (error) { in phar_get_or_create_entry_data()
551 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
566 if (error) { in phar_get_or_create_entry_data()
567 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
601 if (error) { in phar_get_or_create_entry_data()
602 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
651 int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error) /* {{{ */ in phar_copy_entry_fp() argument
655 if (FAILURE == phar_open_entry_fp(source, error, 1)) { in phar_copy_entry_fp()
670 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
683 if (error) { in phar_copy_entry_fp()
684 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
695 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links) /* {{{ */ in phar_open_entry_fp() argument
707 return phar_open_entry_fp(link_entry, error, 1); in phar_open_entry_fp()
729 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
739 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
748 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
757 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
770 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… 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()
794 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
804 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0)) { in phar_open_entry_fp()
811 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_create_writeable_entry() argument
830 if (error) { in phar_create_writeable_entry()
831 *error = NULL; in phar_create_writeable_entry()
844 if (error) { in phar_create_writeable_entry()
845 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
864 int phar_separate_entry_fp(phar_entry_info *entry, char **error) /* {{{ */ in phar_separate_entry_fp() argument
869 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_separate_entry_fp()
879 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
890 if (error) { in phar_separate_entry_fp()
891 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
913 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_open_jit() argument
915 if (error) { in phar_open_jit()
916 *error = NULL; in phar_open_jit()
919 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_open_jit()
923 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
965 …ive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error) /* {{{ */ in phar_get_archive() argument
973 if (error) { in phar_get_archive()
974 *error = NULL; in phar_get_archive()
984 if (error) { in phar_get_archive()
985 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1013 if (error) { in phar_get_archive()
1014 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1017 if (error) { in phar_get_archive()
1018 efree(*error); in phar_get_archive()
1019 *error = NULL; in phar_get_archive()
1052 if (error) { in phar_get_archive()
1053 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1082 if (error) { in phar_get_archive()
1083 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1209 …_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security) /* … in phar_get_entry_info() argument
1211 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security); in phar_get_entry_info()
1219 …o_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security) /* … in phar_get_entry_info_dir() argument
1231 if (error) { in phar_get_entry_info_dir()
1232 *error = NULL; in phar_get_entry_info_dir()
1236 if (error) { in phar_get_entry_info_dir()
1237 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1243 if (error) { in phar_get_entry_info_dir()
1244 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1250 if (error) { in phar_get_entry_info_dir()
1251 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1273 if (error) { in phar_get_entry_info_dir()
1274 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1280 if (error) { in phar_get_entry_info_dir()
1281 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1313 if (error) { in phar_get_entry_info_dir()
1314 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1320 if (error) { in phar_get_entry_info_dir()
1321 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1335 if (error) { in phar_get_entry_info_dir()
1336 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1344 if (error) { in phar_get_entry_info_dir()
1345 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1353 if (error) { in phar_get_entry_info_dir()
1354 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1362 if (error) { in phar_get_entry_info_dir()
1363 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1483 … char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error) /* {{{ */ in phar_verify_signature() argument
1506 if (error) { in phar_verify_signature()
1507 spprintf(error, 0, "openssl not loaded"); in phar_verify_signature()
1521 if (error) { in phar_verify_signature()
1522 spprintf(error, 0, "openssl public key could not be read"); in phar_verify_signature()
1536 if (error) { in phar_verify_signature()
1537 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1553 if (error) { in phar_verify_signature()
1554 spprintf(error, 0, "openssl signature could not be processed"); 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()
1595 if (error) { in phar_verify_signature()
1596 spprintf(error, 0, "broken openssl signature"); in phar_verify_signature()
1614 if (error) { in phar_verify_signature()
1615 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1640 if (error) { in phar_verify_signature()
1641 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1654 if (error) { in phar_verify_signature()
1655 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1680 if (error) { in phar_verify_signature()
1681 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1692 if (error) { in phar_verify_signature()
1693 spprintf(error, 0, "unsupported signature"); in phar_verify_signature()
1702 if (error) { in phar_verify_signature()
1703 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1728 if (error) { in phar_verify_signature()
1729 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1742 if (error) { in phar_verify_signature()
1743 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1768 if (error) { in phar_verify_signature()
1769 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1778 if (error) { in phar_verify_signature()
1779 spprintf(error, 0, "broken or unsupported signature"); in phar_verify_signature()
1787 …rchive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error) /* {{{ */ in phar_create_signature() argument
1834 if (error) { in phar_create_signature()
1835 spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname); in phar_create_signature()
1851 if (error) { in phar_create_signature()
1852 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1861 if (error) { in phar_create_signature()
1862 spprintf(error, 0, "unable to process private key"); in phar_create_signature()
1874 if (error) { in phar_create_signature()
1875 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1883 if (error) { in phar_create_signature()
1884 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1892 if (error) { in phar_create_signature()
1893 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1906 if (error) { in phar_create_signature()
1907 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()