Lines Matching refs:error
62 char *arch = NULL, *entry = NULL, *error; in phar_parse_url() local
116 …if (phar_open_or_create_filename(resource->host, arch_len, NULL, 0, 0, options, &phar, &error TSRM… in phar_parse_url()
118 if (error) { in phar_parse_url()
120 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
122 efree(error); in phar_parse_url()
128 if (error) { in phar_parse_url()
129 …spprintf(&error, 0, "Cannot open cached phar '%s' as writeable, copy on write failed", resource->h… in phar_parse_url()
131 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
133 efree(error); in phar_parse_url()
139 …if (phar_open_from_filename(resource->host, arch_len, NULL, 0, options, NULL, &error TSRMLS_CC) ==… in phar_parse_url()
141 if (error) { in phar_parse_url()
143 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_parse_url()
145 efree(error); in phar_parse_url()
163 char *error; in phar_wrapper_open_url() local
193 …a(resource->host, host_len, internal_file, strlen(internal_file), mode, 0, &error, 1 TSRMLS_CC))) { in phar_wrapper_open_url()
194 if (error) { in phar_wrapper_open_url()
195 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
196 efree(error); in phar_wrapper_open_url()
204 if (error) { in phar_wrapper_open_url()
205 efree(error); in phar_wrapper_open_url()
248 …e->host, host_len, ".phar/stub.php", sizeof(".phar/stub.php")-1, "r", 0, &error, 0 TSRMLS_CC)) || … in phar_wrapper_open_url()
286 … resource->host, host_len, internal_file, strlen(internal_file), "r", 0, &error, 0 TSRMLS_CC)) || … in phar_wrapper_open_url()
288 if (error) { in phar_wrapper_open_url()
289 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
290 efree(error); in phar_wrapper_open_url()
311 …crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2 TSRMLS_CC) != S… in phar_wrapper_open_url()
312 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_open_url()
313 efree(error); in phar_wrapper_open_url()
459 char *error; in phar_stream_flush() local
465 ret = phar_flush(data->phar, 0, 0, 0, &error TSRMLS_CC); in phar_stream_flush()
466 if (error) { in phar_stream_flush()
467 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, "%s", error); in phar_stream_flush()
468 efree(error); in phar_stream_flush()
570 char *internal_file, *error; in phar_wrapper_stat() local
596 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) { in phar_wrapper_stat()
598 if (error) { in phar_wrapper_stat()
599 efree(error); in phar_wrapper_stat()
603 if (error) { in phar_wrapper_stat()
604 efree(error); in phar_wrapper_stat()
692 char *internal_file, *error; in phar_wrapper_unlink() local
731 …&idata, resource->host, host_len, internal_file, internal_file_len, "r", 0, &error, 1 TSRMLS_CC)) { in phar_wrapper_unlink()
733 if (error) { in phar_wrapper_unlink()
734 …hp_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "unlink of \"%s\" failed: %s", url, error); in phar_wrapper_unlink()
735 efree(error); in phar_wrapper_unlink()
743 if (error) { in phar_wrapper_unlink()
744 efree(error); in phar_wrapper_unlink()
756 phar_entry_remove(idata, &error TSRMLS_CC); in phar_wrapper_unlink()
757 if (error) { in phar_wrapper_unlink()
758 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", error); in phar_wrapper_unlink()
759 efree(error); in phar_wrapper_unlink()
768 char *error; in phar_wrapper_rename() local
775 error = NULL; in phar_wrapper_rename()
781 …get_archive(&pfrom, resource_from->host, strlen(resource_from->host), NULL, 0, &error TSRMLS_CC)) { in phar_wrapper_rename()
783 if (error) { in phar_wrapper_rename()
784 efree(error); in phar_wrapper_rename()
798 … phar_get_archive(&pto, resource_to->host, strlen(resource_to->host), NULL, 0, &error TSRMLS_CC)) { in phar_wrapper_rename()
799 if (error) { in phar_wrapper_rename()
800 efree(error); in phar_wrapper_rename()
848 if (SUCCESS != phar_get_archive(&phar, resource_from->host, host_len, NULL, 0, &error TSRMLS_CC)) { in phar_wrapper_rename()
851 …L TSRMLS_CC, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
852 efree(error); in phar_wrapper_rename()
886 if (FAILURE == phar_copy_entry_fp(source, entry, &error TSRMLS_CC)) { in phar_wrapper_rename()
889 …L TSRMLS_CC, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
890 efree(error); in phar_wrapper_rename()
1011 phar_flush(phar, 0, 0, 0, &error TSRMLS_CC); in phar_wrapper_rename()
1012 if (error) { in phar_wrapper_rename()
1015 …L TSRMLS_CC, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\": %s", url_from, url_to, error); in phar_wrapper_rename()
1016 efree(error); in phar_wrapper_rename()