Lines Matching refs:error

353 …t fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRM…  in phar_get_entry_data()  argument
368 if (error) { in phar_get_entry_data()
369 *error = NULL; in phar_get_entry_data()
372 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_entry_data()
377 if (error) { in phar_get_entry_data()
378 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabl… in phar_get_entry_data()
384 if (error) { in phar_get_entry_data()
385 spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); in phar_get_entry_data()
391 …en, allow_dir, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_C… in phar_get_entry_data()
398 …ath, path_len, for_create && !PHAR_G(readonly) && !phar->is_data ? NULL : error, security TSRMLS_C… in phar_get_entry_data()
408 if (error) { in phar_get_entry_data()
409 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could … in phar_get_entry_data()
418 if (error) { in phar_get_entry_data()
419 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writab… in phar_get_entry_data()
425 if (error) { in phar_get_entry_data()
426 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readab… in phar_get_entry_data()
458 if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { in phar_get_entry_data()
473 if (FAILURE == phar_create_writeable_entry(phar, entry, error TSRMLS_CC)) { in phar_get_entry_data()
477 if (FAILURE == phar_separate_entry_fp(entry, error TSRMLS_CC)) { in phar_get_entry_data()
482 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_get_entry_data()
519 …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
533 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { in phar_get_or_create_entry_data()
537 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
544 if (error) { in phar_get_or_create_entry_data()
545 spprintf(error, 0, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_or_create_entry_data()
551 if (error) { in phar_get_or_create_entry_data()
552 …spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make ca… in phar_get_or_create_entry_data()
567 if (error) { in phar_get_or_create_entry_data()
568 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_get_or_create_entry_data()
602 if (error) { in phar_get_or_create_entry_data()
603 …spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, ph… in phar_get_or_create_entry_data()
652 int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC) /* {… in phar_copy_entry_fp()
656 if (FAILURE == phar_open_entry_fp(source, error, 1 TSRMLS_CC)) { in phar_copy_entry_fp()
671 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_copy_entry_fp()
684 if (error) { in phar_copy_entry_fp()
685 …spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archiv… in phar_copy_entry_fp()
696 int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) /* {{{ */ in phar_open_entry_fp() argument
708 return phar_open_entry_fp(link_entry, error, 1 TSRMLS_CC); in phar_open_entry_fp()
730 spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); in phar_open_entry_fp()
740 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { in phar_open_entry_fp()
749 …spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\… in phar_open_entry_fp()
758 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 1 TSRMLS_CC)) { in phar_open_entry_fp()
771 …spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decom… in phar_open_entry_fp()
784 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
795 …spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on… in phar_open_entry_fp()
805 if (FAILURE == phar_postprocess_file(&dummy, entry->crc32, error, 0 TSRMLS_CC)) { in phar_open_entry_fp()
812 int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML… in phar_create_writeable_entry()
831 if (error) { in phar_create_writeable_entry()
832 *error = NULL; in phar_create_writeable_entry()
845 if (error) { in phar_create_writeable_entry()
846 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_create_writeable_entry()
865 int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */ in phar_separate_entry_fp()
870 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_separate_entry_fp()
880 spprintf(error, 0, "phar error: unable to create temporary file"); in phar_separate_entry_fp()
891 if (error) { in phar_separate_entry_fp()
892 …spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s… in phar_separate_entry_fp()
914 phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRML… in phar_open_jit()
916 if (error) { in phar_open_jit()
917 *error = NULL; in phar_open_jit()
920 if (FAILURE == phar_open_entry_fp(entry, error, 1 TSRMLS_CC)) { in phar_open_jit()
924 …spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->fil… in phar_open_jit()
966 …**archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ … in phar_get_archive()
975 if (error) { in phar_get_archive()
976 *error = NULL; in phar_get_archive()
986 if (error) { in phar_get_archive()
987 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1016 if (error) { in phar_get_archive()
1017 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1020 if (error) { in phar_get_archive()
1021 efree(*error); in phar_get_archive()
1022 *error = NULL; in phar_get_archive()
1056 if (error) { in phar_get_archive()
1057 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1086 if (error) { in phar_get_archive()
1087 …spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s… in phar_get_archive()
1214 …_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **error, int security TSRM… in phar_get_entry_info() argument
1216 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security TSRMLS_CC); in phar_get_entry_info()
1224 …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
1236 if (error) { in phar_get_entry_info_dir()
1237 *error = NULL; in phar_get_entry_info_dir()
1241 if (error) { in phar_get_entry_info_dir()
1242 …spprintf(error, 4096, "phar error: cannot directly access magic \".phar\" directory or files withi… in phar_get_entry_info_dir()
1248 if (error) { in phar_get_entry_info_dir()
1249 spprintf(error, 4096, "phar error: invalid path \"%s\" must not be empty", path); in phar_get_entry_info_dir()
1255 if (error) { in phar_get_entry_info_dir()
1256 spprintf(error, 4096, "phar error: invalid path \"%s\" contains %s", path, pcr_error); in phar_get_entry_info_dir()
1278 if (error) { in phar_get_entry_info_dir()
1279 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1285 if (error) { in phar_get_entry_info_dir()
1286 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1329 if (error) { in phar_get_entry_info_dir()
1330 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1337 if (error) { in phar_get_entry_info_dir()
1338 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1354 if (error) { in phar_get_entry_info_dir()
1355 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1363 if (error) { in phar_get_entry_info_dir()
1364 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1372 if (error) { in phar_get_entry_info_dir()
1373 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1381 if (error) { in phar_get_entry_info_dir()
1382 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1527 …g, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ …
1550 if (error) {
1551 spprintf(error, 0, "openssl not loaded");
1569 if (error) {
1570 spprintf(error, 0, "openssl public key could not be read");
1584 if (error) {
1585 spprintf(error, 0, "openssl signature could not be verified");
1601 if (error) {
1602 spprintf(error, 0, "openssl signature could not be processed");
1612 if (error) {
1613 spprintf(error, 0, "openssl signature could not be processed");
1642 if (error) {
1643 spprintf(error, 0, "broken openssl signature");
1680 if (error) {
1681 spprintf(error, 0, "broken signature");
1713 if (error) {
1714 spprintf(error, 0, "broken signature");
1725 if (error) {
1726 spprintf(error, 0, "unsupported signature");
1754 if (error) {
1755 spprintf(error, 0, "broken signature");
1787 if (error) {
1788 spprintf(error, 0, "broken signature");
1797 if (error) {
1798 spprintf(error, 0, "broken or unsupported signature");
1806 …ta *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ …
1853 if (error) {
1854 spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname);
1870 if (error) {
1871 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname);
1880 if (error) {
1881 spprintf(error, 0, "unable to process private key");
1893 if (error) {
1894 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname);
1902 if (error) {
1903 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname);
1911 if (error) {
1912 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);
1925 if (error) {
1926 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);