Lines Matching refs:path

153 static void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const …  in php_stream_display_wrapper_errors()  argument
164 tmp = estrdup(path); in php_stream_display_wrapper_errors()
1960 PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_op… argument
1968 *path_for_open = (char*)path;
1975 for (p = path; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++) {
1979 if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && !memcmp("data:", path, 5)))) {
1980 protocol = path;
2012 if (!strncasecmp(path, "file://localhost/", 17)) {
2017 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':') {
2019 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/') {
2022 php_error_docref(NULL, E_WARNING, "Remote host file access not supported, %s", path);
2029 *path_for_open = (char*)path + n + 1;
2090 PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context) argument
2094 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
2099 return wrapper->wops->stream_mkdir(wrapper, path, mode, options, context);
2104 PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context) argument
2108 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
2113 return wrapper->wops->stream_rmdir(wrapper, path, options, context);
2118 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c… argument
2121 const char *path_to_open = path;
2125 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, 0);
2134 PHPAPI php_stream *_php_stream_opendir(const char *path, int options, argument
2141 if (!path || !*path) {
2145 path_to_open = path;
2147 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, options);
2162 php_stream_display_wrapper_errors(wrapper, path, "Failed to open directory");
2183 PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, argument
2201 if (!path || !*path) {
2210 resolved_path = php_resolve_path(path, strlen(path), PG(include_path));
2213 path = ZSTR_VAL(resolved_path);
2226 path_to_open = path;
2228 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, options);
2269 copy_of_path = pestrdup(path, persistent);
2292 newstream->orig_path = pestrdup(path, persistent);
2301 char *tmp = estrdup(path);
2322 php_stream_display_wrapper_errors(wrapper, path, "Failed to open stream");