Lines Matching refs:wrapper
60 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op… in phar_parse_url() argument
71 php_stream_wrapper_log_error(wrapper, options, "phar error: open mode append not supported"); in phar_parse_url()
78 …php_stream_wrapper_log_error(wrapper, options, "phar error: no directory in \"%s\", must have at l… in phar_parse_url()
81 …php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url or non-existent phar \"%s\… in phar_parse_url()
114 …php_stream_wrapper_log_error(wrapper, options, "phar error: write operations disabled by the php.i… in phar_parse_url()
123 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
134 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
146 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_parse_url()
161 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char… in phar_wrapper_open_url() argument
172 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_url()
179 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", path); in phar_wrapper_open_url()
185 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar stream url \"%s\"", path); in phar_wrapper_open_url()
196 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
199 …php_stream_wrapper_log_error(wrapper, options, "phar error: file \"%s\" could not be created in ph… in phar_wrapper_open_url()
239 …php_stream_wrapper_log_error(wrapper, options, "file %s is not a valid phar archive", ZSTR_VAL(res… in phar_wrapper_open_url()
258 …php_stream_wrapper_log_error(wrapper, options, "phar error: could not reopen phar \"%s\"", ZSTR_VA… in phar_wrapper_open_url()
297 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
300 …php_stream_wrapper_log_error(wrapper, options, "phar error: \"%s\" is not a file in phar \"%s\"", … in phar_wrapper_open_url()
320 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_url()
451 …php_stream_wrapper_log_error(stream->wrapper, stream->flags, "phar error: Could not write %d chara… in phar_stream_write()
477 php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS, "%s", error); in phar_stream_flush()
558 static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, in phar_wrapper_stat() argument
567 if ((resource = phar_parse_url(wrapper, url, "r", flags|PHP_STREAM_URL_STAT_QUIET)) == NULL) { in phar_wrapper_stat()
665 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea… in phar_wrapper_unlink() argument
673 if ((resource = phar_parse_url(wrapper, url, "rb", options)) == NULL) { in phar_wrapper_unlink()
674 php_stream_wrapper_log_error(wrapper, options, "phar error: unlink failed"); in phar_wrapper_unlink()
681 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_unlink()
687 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar stream url \"%s\"", url); in phar_wrapper_unlink()
696 …php_stream_wrapper_log_error(wrapper, options, "phar error: write operations disabled by the php.i… in phar_wrapper_unlink()
706 php_stream_wrapper_log_error(wrapper, options, "unlink of \"%s\" failed: %s", url, error); in phar_wrapper_unlink()
709 …php_stream_wrapper_log_error(wrapper, options, "unlink of \"%s\" failed, file does not exist", url… in phar_wrapper_unlink()
720 …php_stream_wrapper_log_error(wrapper, options, "phar error: \"%s\" in phar \"%s\", has open file p… in phar_wrapper_unlink()
730 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_unlink()
737 static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t… in phar_wrapper_rename() argument
748 …if ((resource_from = phar_parse_url(wrapper, url_from, "wb", options|PHP_STREAM_URL_STAT_QUIET)) =… in phar_wrapper_rename()
764 …if ((resource_to = phar_parse_url(wrapper, url_to, "wb", options|PHP_STREAM_URL_STAT_QUIET)) == NU… in phar_wrapper_rename()