Lines Matching refs:error

457 void phar_entry_remove(phar_entry_data *idata, char **error TSRMLS_DC) /* {{{ */  in phar_entry_remove()
476 phar_flush(phar, 0, 0, 0, error TSRMLS_CC); in phar_entry_remove()
485 if (error) {\
486 spprintf(error, 0, msg, fname);\
529 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
536 if (error) {
537 *error = NULL;
543 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
550 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error TSRMLS_CC)
566 if (error) {
567 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
587 if (phar && error && !(options & REPORT_ERRORS)) {
588 efree(error);
650 …ng halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ …
666 if (error) {
667 *error = NULL;
743 if (error) {
744 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma…
769 if (error) {
770 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
788 if (error) {
789 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname);
806 if (error) {
807 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname);
812 …end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) {
816 if (error) {
817 char *save = *error;
818 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error);
836 if (error) {
837 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
842 …fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
845 if (error) {
846 char *save = *error;
847 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error);
863 if (error) {
864 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
869 …fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) {
872 if (error) {
873 char *save = *error;
874 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error);
887 if (error) {
888 spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname);
901 if (error) {
902 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
907 …e(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) {
910 if (error) {
911 char *save = *error;
912 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error);
928 if (error) {
929 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
934 …re(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) {
937 if (error) {
938 char *save = *error;
939 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error);
950 if (error) {
951 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname);
959 if (error) {
960 spprintf(error, 0, "phar \"%s\" does not have a signature", fname);
991 if (error) {
992 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%s\" under different alias \"%s\…
1240 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1249 if (error) {
1250 *error = NULL;
1260 if (error) {
1262 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be …
1264 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the…
1276 if (error) {
1277 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable …
1285 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
1295 if (error) {
1296 *error = my_error;
1305 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error
1310 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error
1313 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC);
1317 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1344 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1367 if (error) {
1368 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname);
1424 if (error) {
1425 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another …
1445 if (error) {
1446 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,…
1471 …har *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1477 if (error) {
1478 *error = NULL;
1485 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1487 } else if (error && *error) {
1503 if (error) {
1504 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
1518 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1562 …nt alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ …
1577 if (error) {
1578 *error = NULL;
1701 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1707 …arse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC);
1714 …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…
2591 if (error) {
2592 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname);
2597 if (error) {
2598 *error = NULL;
2608 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2612 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2629 if (error) {
2630 spprintf(error, 0, "unable to create temporary file");
2646 if (error) {
2647 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname);
2663 if (error) {
2664 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname);
2679 if (error) {
2680 spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname);
2696 if (error) {
2697 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname);
2724 if (error) {
2726 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname);
2728 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname);
2824 newentry = phar_open_jit(phar, entry, error TSRMLS_CC);
2827 efree(*error);
2828 *error = NULL;
2839 if (error) {
2840 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2863 if (error) {
2864 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar…
2867 if (error) {
2868 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha…
2879 if (error) {
2880 spprintf(error, 0, "unable to create temporary file");
2894 if (error) {
2895 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2905 if (error) {
2906 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar…
2968 if (error) {
2969 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname);
2989 if (error) {
2990 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname);
3028 if (error) {
3030 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", …
3032 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry…
3063 if (error) {
3064 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s…
3079 if (error) {
3080 spprintf(error, 0, "unable to write manifest padding byte");
3111 if (error) {
3112 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3123 if (error) {
3124 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3139 if (error) {
3140 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, …
3185 if (error) {
3186 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash…
3194 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3195 if (error) {
3196 char *save = *error;
3197 spprintf(error, 0, "phar error: unable to write signature: %s", save);
3255 if (error) {
3256 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname);
3271 if (error) {
3272 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old…
3301 if (error) {
3302 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname);