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);
651 …ng halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ …
667 if (error) {
668 *error = NULL;
744 if (error) {
745 …spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, ma…
770 if (error) {
771 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
789 if (error) {
790 spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname);
807 if (error) {
808 spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname);
813 …end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) {
817 if (error) {
818 char *save = *error;
819 spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error);
837 if (error) {
838 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
843 …fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) {
846 if (error) {
847 char *save = *error;
848 spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error);
864 if (error) {
865 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
870 …fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) {
873 if (error) {
874 char *save = *error;
875 spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error);
888 if (error) {
889 spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname);
902 if (error) {
903 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
908 …e(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) {
911 if (error) {
912 char *save = *error;
913 spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error);
929 if (error) {
930 spprintf(error, 0, "phar \"%s\" has a broken signature", fname);
935 …re(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) {
938 if (error) {
939 char *save = *error;
940 spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error);
951 if (error) {
952 spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname);
960 if (error) {
961 spprintf(error, 0, "phar \"%s\" does not have a signature", fname);
992 if (error) {
993 …spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%s\" under different alias \"%s\…
1241 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1250 if (error) {
1251 *error = NULL;
1261 if (error) {
1263 …spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be …
1265 …spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the…
1277 if (error) {
1278 …spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable …
1286 …spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or …
1296 if (error) {
1297 *error = my_error;
1306 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error
1311 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error
1314 …te_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC);
1318 …nt alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1345 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1368 if (error) {
1369 …spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname);
1425 if (error) {
1426 …spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another …
1446 if (error) {
1447 …spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname,…
1472 …har *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ …
1478 if (error) {
1479 *error = NULL;
1486 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1488 } else if (error && *error) {
1504 if (error) {
1505 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
1519 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1563 …nt alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ …
1578 if (error) {
1579 *error = NULL;
1702 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1708 …arse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC);
1715 …pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error TSRMLS_CC);
2326 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */
2335 if (error) {
2336 *error = NULL;
2347 if (error) {
2348 spprintf(error, 0, "cannot initialize a phar outside of PHP execution");
2357 if (error) {
2358 spprintf(error, 0, "__HALT_COMPILER(); must be declared in a phar");
2378 if (error) {
2379 spprintf(error, 0, "unable to open phar for reading \"%s\"", fname);
2392 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
2405 int phar_postprocess_file(phar_entry_data *idata, php_uint32 crc32, char **error, int process_zip T… argument
2412 if (error) {
2413 *error = NULL;
2422 …spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file …
2429 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local fi…
2442 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local da…
2454 …spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file…
2483 …spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")…
2515 …lt_stub(const char *index_php, const char *web_index, size_t *len, char **error TSRMLS_DC) /* {{{ …
2525 if (error) {
2526 *error = NULL;
2542 if (error) {
2543 …spprintf(error, 0, "Illegal filename passed in for stub creation, was %d characters long, and only…
2550 if (error) {
2551 …spprintf(error, 0, "Illegal web filename passed in for stub creation, was %d characters long, and …
2567 int phar_flush(phar_archive_data *phar, char *user_stub, long len, int convert, char **error TSRMLS…
2588 if (error) {
2589 spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname);
2594 if (error) {
2595 *error = NULL;
2605 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2609 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2626 if (error) {
2627 spprintf(error, 0, "unable to create temporary file");
2643 if (error) {
2644 spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname);
2660 if (error) {
2661 spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname);
2676 if (error) {
2677 spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname);
2693 if (error) {
2694 spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname);
2721 if (error) {
2723 spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname);
2725 spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname);
2821 newentry = phar_open_jit(phar, entry, error TSRMLS_CC);
2824 efree(*error);
2825 *error = NULL;
2836 if (error) {
2837 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2860 if (error) {
2861 …spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar…
2864 if (error) {
2865 …spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, pha…
2876 if (error) {
2877 spprintf(error, 0, "unable to create temporary file");
2891 if (error) {
2892 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
2902 if (error) {
2903 …spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar…
2965 if (error) {
2966 spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname);
2986 if (error) {
2987 spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname);
3025 if (error) {
3027 …spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", …
3029 …spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry…
3060 if (error) {
3061 …spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s…
3076 if (error) {
3077 spprintf(error, 0, "unable to write manifest padding byte");
3108 if (error) {
3109 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3120 if (error) {
3121 …spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry-…
3136 if (error) {
3137 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, …
3182 if (error) {
3183 …spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash…
3191 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) {
3192 if (error) {
3193 char *save = *error;
3194 spprintf(error, 0, "phar error: unable to write signature: %s", save);
3252 if (error) {
3253 spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname);
3268 if (error) {
3269 …spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions old…
3298 if (error) {
3299 spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname);