Lines Matching refs:path

318 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char *mode, int options,…  in phar_wrapper_open_dir()  argument
330 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) { in phar_wrapper_open_dir()
331 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
336 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir()
337 if (resource->host && !resource->path) { in phar_wrapper_open_dir()
338 …t least phar://%s/ for root directory (always use full path to a new phar)", path, resource->host); in phar_wrapper_open_dir()
343 …r, options TSRMLS_CC, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path); in phar_wrapper_open_dir()
349 …hp_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
355 internal_file = resource->path + 1; /* strip leading "/" */ in phar_wrapper_open_dir()
463 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_mkdir()
478 … \"%s\" in phar \"%s\", error retrieving phar information: %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
484 …if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 2, &error, … in phar_wrapper_mkdir()
490 …eate directory \"%s\" in phar \"%s\", directory already exists", resource->path+1, resource->host); in phar_wrapper_mkdir()
496 …phar error: cannot create directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
502 …if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1 TSR… in phar_wrapper_mkdir()
504 …ot create directory \"%s\" in phar \"%s\", file already exists", resource->path+1, resource->host); in phar_wrapper_mkdir()
510 …phar error: cannot create directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_mkdir()
523 entry.filename = estrdup(resource->path + 1); in phar_wrapper_mkdir()
530 entry.filename_len = strlen(resource->path + 1); in phar_wrapper_mkdir()
600 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_rmdir()
615 … \"%s\" in phar \"%s\", error retrieving phar information: %s", resource->path+1, resource->host, … in phar_wrapper_rmdir()
621 path_len = strlen(resource->path+1); in phar_wrapper_rmdir()
623 …if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1 TSRMLS_CC))… in phar_wrapper_rmdir()
625 …phar error: cannot remove directory \"%s\" in phar \"%s\", %s", resource->path+1, resource->host, … in phar_wrapper_rmdir()
628 …move directory \"%s\" in phar \"%s\", directory does not exist", resource->path+1, resource->host); in phar_wrapper_rmdir()
642 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
663 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
679 zend_hash_del(&phar->virtual_dirs, resource->path+1, path_len); in phar_wrapper_rmdir()