Lines Matching refs:error
366 …har_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {{{ */ in phar_create_writeable_entry() argument
385 if (error) { in phar_create_writeable_entry()
386 *error = NULL; in phar_create_writeable_entry()
399 if (error) { in phar_create_writeable_entry()
400 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
419 static zend_result phar_separate_entry_fp(phar_entry_info *entry, char **error) /* {{{ */ in phar_separate_entry_fp() argument
424 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_separate_entry_fp()
434 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
445 if (error) { in phar_separate_entry_fp()
446 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
473 …en, char *path, size_t path_len, const char *mode, char allow_dir, char **error, int security) /* … in phar_get_entry_data() argument
488 if (error) { in phar_get_entry_data()
489 *error = NULL; in phar_get_entry_data()
492 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_entry_data()
497 if (error) { in phar_get_entry_data()
498 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
504 if (error) { in phar_get_entry_data()
505 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" must not be empty", fname); in phar_get_entry_data()
511 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
518 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security)) == NUL… in phar_get_entry_data()
528 if (error) { in phar_get_entry_data()
529 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
538 if (error) { in phar_get_entry_data()
539 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… in phar_get_entry_data()
545 if (error) { in phar_get_entry_data()
546 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readab… in phar_get_entry_data()
575 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
590 if (FAILURE == phar_create_writeable_entry(phar, entry, error)) { in phar_get_entry_data()
594 if (FAILURE == phar_separate_entry_fp(entry, error)) { in phar_get_entry_data()
599 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_get_entry_data()
633 …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
647 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) { in phar_get_or_create_entry_data()
651 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
658 if (error) { in phar_get_or_create_entry_data()
659 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
665 if (error) { in phar_get_or_create_entry_data()
666 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
681 if (error) { in phar_get_or_create_entry_data()
682 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
716 if (error) { in phar_get_or_create_entry_data()
717 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
773 zend_result phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error) /* {{{… in phar_copy_entry_fp() argument
777 if (FAILURE == phar_open_entry_fp(source, error, 1)) { in phar_copy_entry_fp()
792 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
805 if (error) { in phar_copy_entry_fp()
806 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
841 zend_result phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links) /* {{{ */ in phar_open_entry_fp() argument
853 return phar_open_entry_fp(link_entry, error, 1); in phar_open_entry_fp()
875 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
885 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
894 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
903 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1)) { in phar_open_entry_fp()
916 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… in phar_open_entry_fp()
929 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
940 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
950 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0)) { in phar_open_entry_fp()
960 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error) /* {… in phar_open_jit() argument
962 if (error) { in phar_open_jit()
963 *error = NULL; in phar_open_jit()
966 if (FAILURE == phar_open_entry_fp(entry, error, 1)) { in phar_open_jit()
970 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
1000 …ta **archive, char *fname, size_t fname_len, char *alias, size_t alias_len, char **error) /* {{{ */ in phar_get_archive() argument
1008 if (error) { in phar_get_archive()
1009 *error = NULL; in phar_get_archive()
1019 if (error) { in phar_get_archive()
1020 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1048 if (error) { in phar_get_archive()
1049 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1052 if (error) { in phar_get_archive()
1053 efree(*error); in phar_get_archive()
1054 *error = NULL; in phar_get_archive()
1087 if (error) { in phar_get_archive()
1088 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1117 if (error) { in phar_get_archive()
1118 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1244 …t_entry_info(phar_archive_data *phar, char *path, size_t path_len, char **error, int security) /* … in phar_get_entry_info() argument
1246 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security); in phar_get_entry_info()
1254 …ir(phar_archive_data *phar, char *path, size_t path_len, char dir, char **error, int security) /* … in phar_get_entry_info_dir() argument
1266 if (error) { in phar_get_entry_info_dir()
1267 *error = NULL; in phar_get_entry_info_dir()
1271 if (error) { in phar_get_entry_info_dir()
1272 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1278 if (error) { in phar_get_entry_info_dir()
1279 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1285 if (error) { in phar_get_entry_info_dir()
1286 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1308 if (error) { in phar_get_entry_info_dir()
1309 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1315 if (error) { in phar_get_entry_info_dir()
1316 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1348 if (error) { in phar_get_entry_info_dir()
1349 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1355 if (error) { in phar_get_entry_info_dir()
1356 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1370 if (error) { in phar_get_entry_info_dir()
1371 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1379 if (error) { in phar_get_entry_info_dir()
1380 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1388 if (error) { in phar_get_entry_info_dir()
1389 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1397 if (error) { in phar_get_entry_info_dir()
1398 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1519 …*sig, size_t sig_len, char *fname, char **signature, size_t *signature_len, char **error) /* {{{ */ in phar_verify_signature() argument
1552 if (error) { in phar_verify_signature()
1553 spprintf(error, 0, "openssl not loaded"); in phar_verify_signature()
1567 if (error) { in phar_verify_signature()
1568 spprintf(error, 0, "openssl public key could not be read"); in phar_verify_signature()
1580 if (error) { in phar_verify_signature()
1581 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1595 if (error) { in phar_verify_signature()
1596 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1606 if (error) { in phar_verify_signature()
1607 spprintf(error, 0, "openssl signature could not be processed"); in phar_verify_signature()
1617 if (error) { in phar_verify_signature()
1618 spprintf(error, 0, "openssl signature could not be verified"); in phar_verify_signature()
1649 if (error) { in phar_verify_signature()
1650 spprintf(error, 0, "broken openssl signature"); in phar_verify_signature()
1668 if (error) { in phar_verify_signature()
1669 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1694 if (error) { in phar_verify_signature()
1695 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1708 if (error) { in phar_verify_signature()
1709 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1734 if (error) { in phar_verify_signature()
1735 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1748 if (error) { in phar_verify_signature()
1749 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1774 if (error) { in phar_verify_signature()
1775 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1788 if (error) { in phar_verify_signature()
1789 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1814 if (error) { in phar_verify_signature()
1815 spprintf(error, 0, "broken signature"); in phar_verify_signature()
1824 if (error) { in phar_verify_signature()
1825 spprintf(error, 0, "broken or unsupported signature"); in phar_verify_signature()
1833 …ive_data *phar, php_stream *fp, char **signature, size_t *signature_length, char **error) /* {{{ */ in phar_create_signature() argument
1901 if (error) { in phar_create_signature()
1902 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1911 if (error) { in phar_create_signature()
1912 spprintf(error, 0, "unable to process private key"); in phar_create_signature()
1920 if (error) { in phar_create_signature()
1921 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1932 if (error) { in phar_create_signature()
1933 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1942 if (error) { in phar_create_signature()
1943 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); in phar_create_signature()
1952 if (error) { in phar_create_signature()
1953 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()
1968 if (error) { in phar_create_signature()
1969 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); in phar_create_signature()