From 570e38fde8c94dff4c457a61b9e93897283d5deb Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 1 Jan 2006 20:34:22 +0000 Subject: [PATCH] - Fix comments --- ext/phar/phar.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 1f7229dc87..16854faf9e 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -526,7 +526,7 @@ PHP_PHAR_API php_stream * php_stream_phar_url_wrapper(php_stream_wrapper *wrappe #endif resource = php_url_parse(path); - /* we must have at the very least phar://alias.phar/internalfile.php */ + /* we must have at the very least phar:/*alias.phar/internalfile.php */*/ if (!resource || !resource->scheme || !resource->host || !resource->path) { if (resource) { php_url_free(resource); @@ -933,7 +933,7 @@ PHP_PHAR_API int phar_stream_stat(php_stream_wrapper *wrapper, char *url, int fl phar_manifest_entry *file_data; resource = php_url_parse(url); - /* we must have at the very least phar://alias.phar/internalfile.php */ + /* we must have at the very least phar:/*alias.phar/internalfile.php */*/ if (!resource || !resource->scheme || !resource->host || !resource->path) { php_url_free(resource); php_stream_wrapper_log_error(wrapper, flags TSRMLS_CC, "phar error: invalid url \"%s\"", url); @@ -948,7 +948,7 @@ PHP_PHAR_API int phar_stream_stat(php_stream_wrapper *wrapper, char *url, int fl } internal_file = resource->path + 1; /* strip leading "/" */ - /* find the phar in our trusty global hash indexed by alias (host of phar://blah.phar/file.whatever) */ + /* find the phar in our trusty global hash indexed by alias (host of phar:/*blah.phar/file.whatever) */*/ if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_data), resource->host, strlen(resource->host), (void **) &data)) { if (*internal_file == '\0') { /* root directory requested */ @@ -1116,15 +1116,15 @@ PHP_PHAR_API php_stream *phar_opendir(php_stream_wrapper *wrapper, char *filenam phar_manifest_entry *file_data; resource = php_url_parse(filename); - /* we must have at the very least phar://alias.phar/ */ + /* we must have at the very least phar:/*alias.phar/ */*/ if (!resource || !resource->scheme || !resource->host || !resource->path) { if (resource->host && !resource->path) { - php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory", filename, resource->host); + php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar:/*%s/ for root directory", filename, resource->host);*/ php_url_free(resource); return NULL; } php_url_free(resource); - php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\", must have at least phar://%s/", filename, filename); + php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\", must have at least phar:/*%s/", filename, filename);*/ return NULL; } -- 2.40.0