Lines Matching refs:error
345 …e_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) /* … in phar_get_entry_data() argument
360 if (error) { in phar_get_entry_data()
361 *error = NULL; in phar_get_entry_data()
364 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
369 if (error) { in phar_get_entry_data()
370 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
376 if (error) { in phar_get_entry_data()
377 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
383 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
390 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
400 if (error) { in phar_get_entry_data()
401 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
410 if (error) { in phar_get_entry_data()
411 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… 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 writing, readab… in phar_get_entry_data()
450 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
465 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
469 if (FAILURE == phar_separate_entry_fp(entry, error)) { in phar_get_entry_data()
474 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_get_entry_data()
511 …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
525 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
529 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
536 if (error) { in phar_get_or_create_entry_data()
537 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
543 if (error) { in phar_get_or_create_entry_data()
544 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
559 if (error) { in phar_get_or_create_entry_data()
560 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
594 if (error) { in phar_get_or_create_entry_data()
595 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
644 int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error) /* {{{ */ in phar_copy_entry_fp() argument
648 if (FAILURE == phar_open_entry_fp(source, error, 1)) { in phar_copy_entry_fp()
663 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
676 if (error) { in phar_copy_entry_fp()
677 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
688 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links) /* {{{ */ in phar_open_entry_fp() argument
700 return phar_open_entry_fp(link_entry, error, 1); in phar_open_entry_fp()
722 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
732 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
741 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
750 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
763 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… in phar_open_entry_fp()
776 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
787 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
797 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0)) { in phar_open_entry_fp()
804 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_create_writeable_entry() argument
823 if (error) { in phar_create_writeable_entry()
824 *error = NULL; in phar_create_writeable_entry()
837 if (error) { in phar_create_writeable_entry()
838 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
857 int phar_separate_entry_fp(phar_entry_info *entry, char **error) /* {{{ */ in phar_separate_entry_fp() argument
862 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_separate_entry_fp()
872 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
883 if (error) { in phar_separate_entry_fp()
884 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
906 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_open_jit() argument
908 if (error) { in phar_open_jit()
909 *error = NULL; in phar_open_jit()
912 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_open_jit()
916 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
958 …ive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error) /* {{{ */ in phar_get_archive() argument
966 if (error) { in phar_get_archive()
967 *error = NULL; in phar_get_archive()
977 if (error) { in phar_get_archive()
978 …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 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1010 if (error) { in phar_get_archive()
1011 efree(*error); in phar_get_archive()
1012 *error = NULL; in phar_get_archive()
1045 if (error) { in phar_get_archive()
1046 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1075 if (error) { in phar_get_archive()
1076 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1202 …_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security) /* … in phar_get_entry_info() argument
1204 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security); in phar_get_entry_info()
1212 …o_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security) /* … in phar_get_entry_info_dir() argument
1224 if (error) { in phar_get_entry_info_dir()
1225 *error = NULL; in phar_get_entry_info_dir()
1229 if (error) { in phar_get_entry_info_dir()
1230 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1236 if (error) { in phar_get_entry_info_dir()
1237 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1243 if (error) { in phar_get_entry_info_dir()
1244 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1266 if (error) { in phar_get_entry_info_dir()
1267 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1273 if (error) { in phar_get_entry_info_dir()
1274 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1306 if (error) { in phar_get_entry_info_dir()
1307 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… 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\" is not properly initialized as a m… in phar_get_entry_info_dir()
1328 if (error) { in phar_get_entry_info_dir()
1329 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1337 if (error) { in phar_get_entry_info_dir()
1338 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1346 if (error) { in phar_get_entry_info_dir()
1347 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1355 if (error) { in phar_get_entry_info_dir()
1356 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1476 … char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error) /* {{{ */ in phar_verify_signature() argument
1499 if (error) { in phar_verify_signature()
1500 spprintf(error, 0, "openssl not loaded"); in phar_verify_signature()
1514 if (error) { in phar_verify_signature()
1515 spprintf(error, 0, "openssl public key could not be read"); in phar_verify_signature()
1529 if (error) { in phar_verify_signature()
1530 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1546 if (error) { in phar_verify_signature()
1547 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1557 if (error) { in phar_verify_signature()
1558 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1588 if (error) { in phar_verify_signature()
1589 spprintf(error, 0, "broken openssl signature"); in phar_verify_signature()
1607 if (error) { in phar_verify_signature()
1608 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1633 if (error) { in phar_verify_signature()
1634 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1647 if (error) { in phar_verify_signature()
1648 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1673 if (error) { in phar_verify_signature()
1674 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1685 if (error) { in phar_verify_signature()
1686 spprintf(error, 0, "unsupported signature"); in phar_verify_signature()
1695 if (error) { in phar_verify_signature()
1696 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1721 if (error) { in phar_verify_signature()
1722 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1735 if (error) { in phar_verify_signature()
1736 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1761 if (error) { in phar_verify_signature()
1762 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1771 if (error) { in phar_verify_signature()
1772 spprintf(error, 0, "broken or unsupported signature"); in phar_verify_signature()
1780 …rchive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error) /* {{{ */ in phar_create_signature() argument
1827 if (error) { in phar_create_signature()
1828 spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname); in phar_create_signature()
1844 if (error) { in phar_create_signature()
1845 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1854 if (error) { in phar_create_signature()
1855 spprintf(error, 0, "unable to process private key"); in phar_create_signature()
1867 if (error) { in phar_create_signature()
1868 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1876 if (error) { in phar_create_signature()
1877 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1885 if (error) { in phar_create_signature()
1886 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1899 if (error) { in phar_create_signature()
1900 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()