Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jun 2011 at 06:06 UTC
Updated:
4 Apr 2016 at 21:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damien tournoud commentedDevelopment branch: 8.x-1185360 in my sandbox.
Comment #2
damien tournoud commentedWith this, I can install Drupal and load a module from a
.phararchive in any modules directory.Comment #3
damien tournoud commentedExample of PHAR archive (strip the .gz suffix).
Comment #5
chx commentedNice. Love it. Note that the stream wrapper does not support directories AFAIK and so you can just drop those. In fact, if all the stream_wrapper is doing is include 'drupal://' then stream_open, stream_read and stream_eof is enough.
Comment #6
damien tournoud commentedThat should fix the tests, hopefully. Also, completely removed drupal_get_filename() now.
Comment #7
chx commentedOh you are using the phar archives as directories! Very clever. I hope the bot passes. Will review more.
Comment #9
damien tournoud commentedRemoved an unnecessary change in file.inc that prevent http-based file URLs from being rendered properly.
Comment #10
neclimdulsub
Comment #11
cweagansMaybe I'm missing something: why should this be in core?
Comment #12
catchSubscribing.
Comment #13
sunWondering whether it would make sense to keep drupal_get_filename() as simple procedural wrapper?
24 days to next Drupal core point release.
Comment #14
droplet commentedlove to see this on drupal +1. Subscribing
Comment #15
Crell commentedSubscribing.
While I don't know that modules should ship as phar archives, once we have a lot more namespaced class-per-file code it may be better to use a built phar archive rather than a built mega-file to reduce autoloading. See related discussion here: #1241190: Possible approaches to bootstrap/front loading of classes
Comment #16
robloachWe could save ourselves this line of code if we just place the file at core/lib/Drupal/Core/StreamWrapper/ModuleStreamWrapper.php and stick
use Drupal\Core\StreamWrapper\ModuleStreamWrapper;at the top of each file we use it in.-10 days to next Drupal core point release.
Comment #17
sinasalek commentedBrilliant idea
Comment #18
shariharan commentedCan D7 work from PHAR archive?
Comment #19
jerry_pham commentedDoes this refactor make it possible to run Drupal completely from a PHAR archive?
Comment #20
deviantintegral commentedI did a pretty deep dive into PHAR archives a few months back, investigating to see if they were suitable for a D8 deployment. I found several issues including:
Given the lack of updates on this patch, and all the above, I'm closing as wontfix. PHARs are great for CLI tools, but not for for web facing apps.