Lines Matching refs:error

63 	char *arch = NULL, *entry = NULL, *error;  in phar_parse_url()  local
119 …ZSTR_VAL(resource->host), ZSTR_LEN(resource->host), NULL, 0, 0, options, &phar, &error) == FAILURE) in phar_parse_url()
121 if (error) { in phar_parse_url()
123 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
125 efree(error); in phar_parse_url()
131 if (error) { in phar_parse_url()
132 …spprintf(&error, 0, "Cannot open cached phar '%s' as writeable, copy on write failed", ZSTR_VAL(re… in phar_parse_url()
134 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
136 efree(error); in phar_parse_url()
142 …ame(ZSTR_VAL(resource->host), ZSTR_LEN(resource->host), NULL, 0, options, NULL, &error) == FAILURE) in phar_parse_url()
144 if (error) { in phar_parse_url()
146 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
148 efree(error); in phar_parse_url()
166 char *error; in phar_wrapper_open_url() local
196 …a(ZSTR_VAL(resource->host), host_len, internal_file, strlen(internal_file), mode, 0, &error, 1))) { in phar_wrapper_open_url()
197 if (error) { in phar_wrapper_open_url()
198 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
199 efree(error); in phar_wrapper_open_url()
207 if (error) { in phar_wrapper_open_url()
208 efree(error); in phar_wrapper_open_url()
247 …ce->host), host_len, ".phar/stub.php", sizeof(".phar/stub.php")-1, "r", 0, &error, 0)) || !idata) { in phar_wrapper_open_url()
285 …L(resource->host), host_len, internal_file, strlen(internal_file), "r", 0, &error, 0)) || !idata) { in phar_wrapper_open_url()
287 if (error) { in phar_wrapper_open_url()
288 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
289 efree(error); in phar_wrapper_open_url()
310 …s_crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2) != SUCCESS) { in phar_wrapper_open_url()
311 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
312 efree(error); in phar_wrapper_open_url()
461 char *error; in phar_stream_flush() local
467 ret = phar_flush(data->phar, 0, 0, 0, &error); in phar_stream_flush()
468 if (error) { in phar_stream_flush()
469 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
470 efree(error); in phar_stream_flush()
554 char *internal_file, *error; in phar_wrapper_stat() local
580 if (FAILURE == phar_get_archive(&phar, ZSTR_VAL(resource->host), host_len, NULL, 0, &error)) { in phar_wrapper_stat()
582 if (error) { in phar_wrapper_stat()
583 efree(error); in phar_wrapper_stat()
587 if (error) { in phar_wrapper_stat()
588 efree(error); in phar_wrapper_stat()
662 char *internal_file, *error; in phar_wrapper_unlink() local
699 …&idata, ZSTR_VAL(resource->host), host_len, internal_file, internal_file_len, "r", 0, &error, 1)) { in phar_wrapper_unlink()
701 if (error) { in phar_wrapper_unlink()
702 php_stream_wrapper_log_error(wrapper, options, "unlink of \"%s\" failed: %s", url, error); in phar_wrapper_unlink()
703 efree(error); in phar_wrapper_unlink()
711 if (error) { in phar_wrapper_unlink()
712 efree(error); in phar_wrapper_unlink()
724 phar_entry_remove(idata, &error); in phar_wrapper_unlink()
725 if (error) { in phar_wrapper_unlink()
726 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_unlink()
727 efree(error); in phar_wrapper_unlink()
736 char *error; in phar_wrapper_rename() local
743 error = NULL; in phar_wrapper_rename()
749 …t_archive(&pfrom, ZSTR_VAL(resource_from->host), ZSTR_LEN(resource_from->host), NULL, 0, &error)) { in phar_wrapper_rename()
751 if (error) { in phar_wrapper_rename()
752 efree(error); in phar_wrapper_rename()
766 …har_get_archive(&pto, ZSTR_VAL(resource_to->host), ZSTR_LEN(resource_to->host), NULL, 0, &error)) { in phar_wrapper_rename()
767 if (error) { in phar_wrapper_rename()
768 efree(error); in phar_wrapper_rename()
816 if (SUCCESS != phar_get_archive(&phar, ZSTR_VAL(resource_from->host), host_len, NULL, 0, &error)) { in phar_wrapper_rename()
819 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
820 efree(error); in phar_wrapper_rename()
854 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
857 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
858 efree(error); in phar_wrapper_rename()
951 phar_flush(phar, 0, 0, 0, &error); in phar_wrapper_rename()
952 if (error) { in phar_wrapper_rename()
955 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
956 efree(error); in phar_wrapper_rename()