Lines Matching refs:path

150 void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *c…  in php_stream_display_wrapper_errors()  argument
152 char *tmp = estrdup(path); in php_stream_display_wrapper_errors()
1751 PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_op… argument
1759 *path_for_open = (char*)path;
1766 for (p = path; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++) {
1770 if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && !memcmp("data:", path, 5)))) {
1771 protocol = path;
1802 if (!strncasecmp(path, "file://localhost/", 17)) {
1807 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':') {
1809 if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/') {
1812 php_error_docref(NULL, E_WARNING, "remote host file access not supported, %s", path);
1819 *path_for_open = (char*)path + n + 1;
1883 PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context) argument
1887 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
1892 return wrapper->wops->stream_mkdir(wrapper, path, mode, options, context);
1898 PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context) argument
1902 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
1907 return wrapper->wops->stream_rmdir(wrapper, path, options, context);
1912 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c… argument
1915 const char *path_to_open = path;
1921 if (BG(CurrentLStatFile) && strcmp(path, BG(CurrentLStatFile)) == 0) {
1926 if (BG(CurrentStatFile) && strcmp(path, BG(CurrentStatFile)) == 0) {
1933 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, 0);
1943 BG(CurrentLStatFile) = estrdup(path);
1949 BG(CurrentStatFile) = estrdup(path);
1961 PHPAPI php_stream *_php_stream_opendir(const char *path, int options, argument
1968 if (!path || !*path) {
1972 path_to_open = path;
1974 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, options);
1989 php_stream_display_wrapper_errors(wrapper, path, "failed to open dir");
2010 PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, argument
2024 if (!path || !*path) {
2030 resolved_path = zend_resolve_path(path, (int)strlen(path));
2032 path = ZSTR_VAL(resolved_path);
2039 path_to_open = path;
2041 wrapper = php_stream_locate_url_wrapper(path, &path_to_open, options);
2082 copy_of_path = pestrdup(path, persistent);
2105 newstream->orig_path = pestrdup(path, persistent);
2114 char *tmp = estrdup(path);
2135 php_stream_display_wrapper_errors(wrapper, path, "failed to open stream");