#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);
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);
}
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 */
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;
}