Lines Matching refs:path

304 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, …  in phar_wrapper_open_dir()  argument
315 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
316 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
321 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir()
322 if (resource->host && !resource->path) { in phar_wrapper_open_dir()
323 …t least phar://%s/ for root directory (always use full path to a new phar)", path, resource->host); in phar_wrapper_open_dir()
328 …ror(wrapper, options, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path); in phar_wrapper_open_dir()
334 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
340 internal_file = resource->path + 1; /* strip leading "/" */ in phar_wrapper_open_dir()
444 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_mkdir()
459 … \"%s\" in phar \"%s\", error retrieving phar information: %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
465 …if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 2, &error, … in phar_wrapper_mkdir()
471 …eate directory \"%s\" in phar \"%s\", directory already exists", resource->path+1, resource->host); in phar_wrapper_mkdir()
477 …phar error: cannot create directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
483 if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1)) { in phar_wrapper_mkdir()
485 …ot create directory \"%s\" in phar \"%s\", file already exists", resource->path+1, resource->host); in phar_wrapper_mkdir()
491 …phar error: cannot create directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
504 entry.filename = estrdup(resource->path + 1); in phar_wrapper_mkdir()
511 entry.filename_len = strlen(resource->path + 1); in phar_wrapper_mkdir()
579 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_rmdir()
594 … \"%s\" in phar \"%s\", error retrieving phar information: %s", resource->path+1, resource->host, … in phar_wrapper_rmdir()
600 path_len = strlen(resource->path+1); in phar_wrapper_rmdir()
602 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1))) { in phar_wrapper_rmdir()
604 …phar error: cannot remove directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_rmdir()
607 …move directory \"%s\" in phar \"%s\", directory does not exist", resource->path+1, resource->host); in phar_wrapper_rmdir()
619 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
636 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
650 zend_hash_str_del(&phar->virtual_dirs, resource->path+1, path_len); in phar_wrapper_rmdir()