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);
662 …ng halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ …
678 if (error) {
679 *error = NULL;
755 if (error) {
756 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma…
781 if (error) {
782 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
800 if (error) {
801 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname);
818 if (error) {
819 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname);
824 …end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) {
828 if (error) {
829 char *save = *error;
830 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error);
848 if (error) {
849 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
854 …fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
857 if (error) {
858 char *save = *error;
859 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error);
875 if (error) {
876 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
881 …fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) {
884 if (error) {
885 char *save = *error;
886 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error);
899 if (error) {
900 spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname);
913 if (error) {
914 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
919 …e(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) {
922 if (error) {
923 char *save = *error;
924 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error);
940 if (error) {
941 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
946 …re(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) {
949 if (error) {
950 char *save = *error;
951 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error);
962 if (error) {
963 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname);
971 if (error) {
972 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 \"%…
1251 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1260 if (error) {
1261 *error = NULL;
1271 if (error) {
1273 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be …
1275 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the…
1287 if (error) {
1288 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable …
1296 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
1306 if (error) {
1307 *error = my_error;
1316 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1321 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1324 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC);
1328 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1355 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1378 if (error) {
1379 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname);
1435 if (error) {
1436 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another …
1456 if (error) {
1457 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,…
1482 …har *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1488 if (error) {
1489 *error = NULL;
1496 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1498 } else if (error && *error) {
1514 if (error) {
1515 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
1529 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1573 …nt alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ …
1588 if (error) {
1589 *error = NULL;
1712 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1718 …arse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC);
1725 …pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error TSRMLS_CC);
2319 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */
2328 if (error) {
2329 *error = NULL;
2340 if (error) {
2341 spprintf(error, 0, "cannot initialize a phar outside of PHP execution");
2350 if (error) {
2351 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar");
2371 if (error) {
2372 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
2385 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
2398 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2405 if (error) {
2406 *error = NULL;
2415 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file …
2422 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi…
2435 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da…
2447 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file…
2476 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")…
2508 …lt_stub(const char *index_php, const char *web_index, size_t *len, char **error TSRMLS_DC) /* {{{ …
2518 if (error) {
2519 *error = NULL;
2535 if (error) {
2536 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %d characters long, and only…
2543 if (error) {
2544 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %d characters long, and …
2560 int phar_flush(phar_archive_data *phar, char *user_stub, long len, int convert, char **error TSRMLS…
2581 if (error) {
2582 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname);
2587 if (error) {
2588 *error = NULL;
2598 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2602 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2619 if (error) {
2620 spprintf(error, 0, "unable to create temporary file");
2636 if (error) {
2637 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname);
2653 if (error) {
2654 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname);
2669 if (error) {
2670 spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname);
2686 if (error) {
2687 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname);
2714 if (error) {
2716 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname);
2718 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname);
2814 newentry = phar_open_jit(phar, entry, error TSRMLS_CC);
2817 efree(*error);
2818 *error = NULL;
2829 if (error) {
2830 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2853 if (error) {
2854 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar…
2857 if (error) {
2858 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha…
2869 if (error) {
2870 spprintf(error, 0, "unable to create temporary file");
2884 if (error) {
2885 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2895 if (error) {
2896 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar…
2958 if (error) {
2959 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname);
2979 if (error) {
2980 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname);
3018 if (error) {
3020 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", …
3022 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry…
3053 if (error) {
3054 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s…
3069 if (error) {
3070 spprintf(error, 0, "unable to write manifest padding byte");
3101 if (error) {
3102 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3113 if (error) {
3114 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3129 if (error) {
3130 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, …
3175 if (error) {
3176 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash…
3184 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3185 if (error) {
3186 char *save = *error;
3187 spprintf(error, 0, "phar error: unable to write signature: %s", save);
3245 if (error) {
3246 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname);
3261 if (error) {
3262 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old…
3291 if (error) {
3292 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname);