Lines Matching refs:error
353 …e_len, char *path, int path_len, const 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 …e_len, char *path, int path_len, const 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()
1325 if (error) { in phar_get_entry_info_dir()
1326 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" could not be retrieved from manife… in phar_get_entry_info_dir()
1332 if (error) { in phar_get_entry_info_dir()
1333 …spprintf(error, 4096, "phar internal error: mounted path \"%s\" is not properly initialized as a m… in phar_get_entry_info_dir()
1347 if (error) { in phar_get_entry_info_dir()
1348 spprintf(error, 4096, "phar error: path \"%s\" is a directory", path); in phar_get_entry_info_dir()
1356 if (error) { in phar_get_entry_info_dir()
1357 spprintf(error, 4096, "phar error: path \"%s\" exists and is a not a directory", path); in phar_get_entry_info_dir()
1365 if (error) { in phar_get_entry_info_dir()
1366 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be mounted", pa… in phar_get_entry_info_dir()
1374 if (error) { in phar_get_entry_info_dir()
1375 …spprintf(error, 4096, "phar error: path \"%s\" exists as file \"%s\" and could not be retrieved af… in phar_get_entry_info_dir()
1520 …g, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ …
1543 if (error) {
1544 spprintf(error, 0, "openssl not loaded");
1562 if (error) {
1563 spprintf(error, 0, "openssl public key could not be read");
1577 if (error) {
1578 spprintf(error, 0, "openssl signature could not be verified");
1594 if (error) {
1595 spprintf(error, 0, "openssl signature could not be processed");
1605 if (error) {
1606 spprintf(error, 0, "openssl signature could not be processed");
1635 if (error) {
1636 spprintf(error, 0, "broken openssl signature");
1654 if (error) {
1655 spprintf(error, 0, "broken signature");
1680 if (error) {
1681 spprintf(error, 0, "broken signature");
1694 if (error) {
1695 spprintf(error, 0, "broken signature");
1720 if (error) {
1721 spprintf(error, 0, "broken signature");
1732 if (error) {
1733 spprintf(error, 0, "unsupported signature");
1742 if (error) {
1743 spprintf(error, 0, "broken signature");
1768 if (error) {
1769 spprintf(error, 0, "broken signature");
1782 if (error) {
1783 spprintf(error, 0, "broken signature");
1808 if (error) {
1809 spprintf(error, 0, "broken signature");
1818 if (error) {
1819 spprintf(error, 0, "broken or unsupported signature");
1827 …ta *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ …
1874 if (error) {
1875 spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname);
1891 if (error) {
1892 …spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname);
1901 if (error) {
1902 spprintf(error, 0, "unable to process private key");
1914 if (error) {
1915 spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname);
1923 if (error) {
1924 spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname);
1932 if (error) {
1933 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);
1946 if (error) {
1947 … spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname);