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()
250 …ce->host), host_len, ".phar/stub.php", sizeof(".phar/stub.php")-1, "r", 0, &error, 0)) || !idata) { in phar_wrapper_open_url()
288 …L(resource->host), host_len, internal_file, strlen(internal_file), "r", 0, &error, 0)) || !idata) { in phar_wrapper_open_url()
290 if (error) { in phar_wrapper_open_url()
291 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
292 efree(error); in phar_wrapper_open_url()
313 …s_crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2) != SUCCESS) { in phar_wrapper_open_url()
314 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
315 efree(error); in phar_wrapper_open_url()
464 char *error; in phar_stream_flush() local
470 ret = phar_flush(data->phar, 0, 0, 0, &error); in phar_stream_flush()
471 if (error) { in phar_stream_flush()
472 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
473 efree(error); in phar_stream_flush()
557 char *internal_file, *error; in phar_wrapper_stat() local
583 if (FAILURE == phar_get_archive(&phar, ZSTR_VAL(resource->host), host_len, NULL, 0, &error)) { in phar_wrapper_stat()
585 if (error) { in phar_wrapper_stat()
586 efree(error); in phar_wrapper_stat()
590 if (error) { in phar_wrapper_stat()
591 efree(error); in phar_wrapper_stat()
665 char *internal_file, *error; in phar_wrapper_unlink() local
702 …&idata, ZSTR_VAL(resource->host), host_len, internal_file, internal_file_len, "r", 0, &error, 1)) { in phar_wrapper_unlink()
704 if (error) { in phar_wrapper_unlink()
705 php_stream_wrapper_log_error(wrapper, options, "unlink of \"%s\" failed: %s", url, error); in phar_wrapper_unlink()
706 efree(error); in phar_wrapper_unlink()
714 if (error) { in phar_wrapper_unlink()
715 efree(error); in phar_wrapper_unlink()
727 phar_entry_remove(idata, &error); in phar_wrapper_unlink()
728 if (error) { in phar_wrapper_unlink()
729 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_unlink()
730 efree(error); in phar_wrapper_unlink()
739 char *error; in phar_wrapper_rename() local
746 error = NULL; in phar_wrapper_rename()
752 …t_archive(&pfrom, ZSTR_VAL(resource_from->host), ZSTR_LEN(resource_from->host), NULL, 0, &error)) { in phar_wrapper_rename()
754 if (error) { in phar_wrapper_rename()
755 efree(error); in phar_wrapper_rename()
769 …har_get_archive(&pto, ZSTR_VAL(resource_to->host), ZSTR_LEN(resource_to->host), NULL, 0, &error)) { in phar_wrapper_rename()
770 if (error) { in phar_wrapper_rename()
771 efree(error); in phar_wrapper_rename()
819 if (SUCCESS != phar_get_archive(&phar, ZSTR_VAL(resource_from->host), host_len, NULL, 0, &error)) { in phar_wrapper_rename()
822 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
823 efree(error); in phar_wrapper_rename()
857 if (FAILURE == phar_copy_entry_fp(source, entry, &error)) { in phar_wrapper_rename()
860 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
861 efree(error); in phar_wrapper_rename()
954 phar_flush(phar, 0, 0, 0, &error); in phar_wrapper_rename()
955 if (error) { in phar_wrapper_rename()
958 …docref(NULL, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
959 efree(error); in phar_wrapper_rename()