Lines Matching refs:error

575 …t fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRM…  in phar_get_entry_data()  argument
590 if (error) { in phar_get_entry_data()
591 *error = NULL; in phar_get_entry_data()
594 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_entry_data()
599 if (error) { in phar_get_entry_data()
600 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
606 if (error) { in phar_get_entry_data()
607 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
613 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_C… in phar_get_entry_data()
620 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_C… in phar_get_entry_data()
630 if (error) { in phar_get_entry_data()
631 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
640 if (error) { in phar_get_entry_data()
641 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… in phar_get_entry_data()
647 if (error) { in phar_get_entry_data()
648 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readab… in phar_get_entry_data()
680 if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { in phar_get_entry_data()
695 if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { in phar_get_entry_data()
699 if (FAILURE == phar_separate_entry_fp(entry, error TSRMLS_CC)) { in phar_get_entry_data()
704 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_get_entry_data()
736 …t fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRM… in phar_get_or_create_entry_data() argument
750 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_or_create_entry_data()
754 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
761 if (error) { in phar_get_or_create_entry_data()
762 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
768 if (error) { in phar_get_or_create_entry_data()
769 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
784 if (error) { in phar_get_or_create_entry_data()
785 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
819 if (error) { in phar_get_or_create_entry_data()
820 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
874 int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC) /* {… in phar_copy_entry_fp()
878 if (FAILURE == phar_open_entry_fp(source, error, 1 TSRMLS_CC)) { in phar_copy_entry_fp()
893 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
906 if (error) { in phar_copy_entry_fp()
907 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
918 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) /* {{{ */ in phar_open_entry_fp() argument
930 return phar_open_entry_fp(link_entry, error, 1 TSRMLS_CC); in phar_open_entry_fp()
952 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
962 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { in phar_open_entry_fp()
971 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
980 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { in phar_open_entry_fp()
993 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… in phar_open_entry_fp()
1006 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
1017 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
1027 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0 TSRMLS_CC)) { in phar_open_entry_fp()
1045 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML… in phar_create_writeable_entry()
1061 if (error) { in phar_create_writeable_entry()
1062 …spprintf(error, 0, "phar error: file \"%s\" cannot be opened for writing, no truncate support", ph… in phar_create_writeable_entry()
1069 if (error) { in phar_create_writeable_entry()
1070 …spprintf(error, 0, "phar error: file \"%s\" cannot be opened for writing, no truncate support", ph… in phar_create_writeable_entry()
1088 if (error) { in phar_create_writeable_entry()
1089 *error = NULL; in phar_create_writeable_entry()
1102 if (error) { in phar_create_writeable_entry()
1103 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
1122 int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ in phar_separate_entry_fp()
1127 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_separate_entry_fp()
1137 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
1148 if (error) { in phar_separate_entry_fp()
1149 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
1171 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML… in phar_open_jit()
1173 if (error) { in phar_open_jit()
1174 *error = NULL; in phar_open_jit()
1177 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_open_jit()
1181 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
1211 …**archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ … in phar_get_archive()
1220 if (error) { in phar_get_archive()
1221 *error = NULL; in phar_get_archive()
1231 if (error) { in phar_get_archive()
1232 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1261 if (error) { in phar_get_archive()
1262 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1265 if (error) { in phar_get_archive()
1266 efree(*error); in phar_get_archive()
1267 *error = NULL; in phar_get_archive()
1301 if (error) { in phar_get_archive()
1302 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1331 if (error) { in phar_get_archive()
1332 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1459 …_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRM… in phar_get_entry_info() argument
1461 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security TSRMLS_CC); in phar_get_entry_info()
1469 …o_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRM… in phar_get_entry_info_dir() argument
1481 if (error) { in phar_get_entry_info_dir()
1482 *error = NULL; in phar_get_entry_info_dir()
1486 if (error) { in phar_get_entry_info_dir()
1487 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1493 if (error) { in phar_get_entry_info_dir()
1494 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1500 if (error) { in phar_get_entry_info_dir()
1501 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1523 if (error) { in phar_get_entry_info_dir()
1524 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1530 if (error) { in phar_get_entry_info_dir()
1531 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1574 if (error) { in phar_get_entry_info_dir()
1575 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1582 if (error) { in phar_get_entry_info_dir()
1583 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1599 if (error) { in phar_get_entry_info_dir()
1600 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1608 if (error) { in phar_get_entry_info_dir()
1609 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1617 if (error) { in phar_get_entry_info_dir()
1618 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1626 if (error) { in phar_get_entry_info_dir()
1627 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1793 …g, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ …
1816 if (error) {
1817 spprintf(error, 0, "openssl not loaded");
1835 if (error) {
1836 spprintf(error, 0, "openssl public key could not be read");
1850 if (error) {
1851 spprintf(error, 0, "openssl signature could not be verified");
1867 if (error) {
1868 spprintf(error, 0, "openssl signature could not be processed");
1878 if (error) {
1879 spprintf(error, 0, "openssl signature could not be processed");
1908 if (error) {
1909 spprintf(error, 0, "broken openssl signature");
1946 if (error) {
1947 spprintf(error, 0, "broken signature");
1979 if (error) {
1980 spprintf(error, 0, "broken signature");
1991 if (error) {
1992 spprintf(error, 0, "unsupported signature");
2020 if (error) {
2021 spprintf(error, 0, "broken signature");
2053 if (error) {
2054 spprintf(error, 0, "broken signature");
2063 if (error) {
2064 spprintf(error, 0, "broken or unsupported signature");
2072 …ta *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ …
2119 if (error) {
2120 spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname);
2136 if (error) {
2137 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname);
2146 if (error) {
2147 spprintf(error, 0, "unable to process private key");
2159 if (error) {
2160 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname);
2168 if (error) {
2169 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname);
2177 if (error) {
2178 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);
2191 if (error) {
2192 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);