Lines Matching refs:error
459 void phar_entry_remove(phar_entry_data *idata, char **error TSRMLS_DC) /* {{{ */ in phar_entry_remove()
478 phar_flush(phar, 0, 0, 0, error TSRMLS_CC); in phar_entry_remove()
487 if (error) {\
488 spprintf(error, 0, msg, fname);\
531 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
538 if (error) {
539 *error = NULL;
545 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
552 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error TSRMLS_CC)
568 if (error) {
569 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
589 if (phar && error && !(options & REPORT_ERRORS)) {
590 efree(error);
662 …ng halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ …
677 if (error) {
678 *error = NULL;
754 if (error) {
755 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma…
780 if (error) {
781 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
799 if (error) {
800 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname);
817 if (error) {
818 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname);
823 …end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) {
827 if (error) {
828 char *save = *error;
829 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error);
847 if (error) {
848 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
853 …fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
856 if (error) {
857 char *save = *error;
858 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error);
874 if (error) {
875 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
880 …fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) {
883 if (error) {
884 char *save = *error;
885 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error);
898 if (error) {
899 spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname);
912 if (error) {
913 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
918 …e(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) {
921 if (error) {
922 char *save = *error;
923 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error);
939 if (error) {
940 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
945 …re(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) {
948 if (error) {
949 char *save = *error;
950 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error);
961 if (error) {
962 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname);
970 if (error) {
971 spprintf(error, 0, "phar \"%s\" does not have a signature", fname);
1002 if (error) {
1003 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%s\" under different alias \"%s\…
1244 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1253 if (error) {
1254 *error = NULL;
1264 if (error) {
1266 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be …
1268 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the…
1280 if (error) {
1281 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable …
1289 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
1299 if (error) {
1300 *error = my_error;
1309 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1314 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1317 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC);
1321 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1348 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1371 if (error) {
1372 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname);
1428 if (error) {
1429 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another …
1449 if (error) {
1450 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,…
1475 …har *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1481 if (error) {
1482 *error = NULL;
1489 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1491 } else if (error && *error) {
1507 if (error) {
1508 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
1522 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1566 …nt alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ …
1581 if (error) {
1582 *error = NULL;
1705 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1711 …arse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC);
1718 …pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error TSRMLS_CC);
2329 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */
2338 if (error) {
2339 *error = NULL;
2350 if (error) {
2351 spprintf(error, 0, "cannot initialize a phar outside of PHP execution");
2360 if (error) {
2361 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar");
2381 if (error) {
2382 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
2395 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
2408 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2415 if (error) {
2416 *error = NULL;
2425 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file …
2432 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi…
2445 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da…
2457 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file…
2486 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")…
2518 …lt_stub(const char *index_php, const char *web_index, size_t *len, char **error TSRMLS_DC) /* {{{ …
2528 if (error) {
2529 *error = NULL;
2545 if (error) {
2546 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %d characters long, and only…
2553 if (error) {
2554 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %d characters long, and …
2570 int phar_flush(phar_archive_data *phar, char *user_stub, long len, int convert, char **error TSRMLS…
2590 if (error) {
2591 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname);
2596 if (error) {
2597 *error = NULL;
2607 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2611 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2628 if (error) {
2629 spprintf(error, 0, "unable to create temporary file");
2645 if (error) {
2646 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname);
2662 if (error) {
2663 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname);
2678 if (error) {
2679 spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname);
2695 if (error) {
2696 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname);
2723 if (error) {
2725 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname);
2727 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname);
2823 newentry = phar_open_jit(phar, entry, error TSRMLS_CC);
2826 efree(*error);
2827 *error = NULL;
2838 if (error) {
2839 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2862 if (error) {
2863 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar…
2866 if (error) {
2867 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha…
2878 if (error) {
2879 spprintf(error, 0, "unable to create temporary file");
2893 if (error) {
2894 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2904 if (error) {
2905 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar…
2961 if (error) {
2962 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname);
2982 if (error) {
2983 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname);
3021 if (error) {
3023 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", …
3025 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry…
3056 if (error) {
3057 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s…
3088 if (error) {
3089 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3100 if (error) {
3101 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3116 if (error) {
3117 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, …
3162 if (error) {
3163 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash…
3171 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3172 if (error) {
3173 char *save = *error;
3174 spprintf(error, 0, "phar error: unable to write signature: %s", save);
3232 if (error) {
3233 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname);
3248 if (error) {
3249 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old…
3278 if (error) {
3279 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname);