symfony/symfony — Issue #2419: Streams protocol are not supported for the detection of absolute paths
Author: francoispluchino
Created: 2011-10-17 12:34:27+00:00
State: open

By loading a bundle wrapped in PHAR file, loading PHAR files does not occur.

The problem is (probably) the methods isAbsolutePath() in multiple files:

* vendor/symfony/src/Symfony/Component/Templating/Loader/FilesystemLoader.php (static protected function isAbsolutePath($file))
* vendor/symfony/src/Symfony/Component/Config/FileLocator.php (private function isAbsolutePath($file))
* vendor/symfony/src/Symfony/Component/HttpKernel/Util/Filesystem.php (public function isAbsolutePath($file))
* vendor/assetic/src/Assetic/Factory/AssetFactory.php (static private function isAbsolutePath($path))

By adding the removal streams protocol (phar://, zlib://, ...) before the analysis, detection of the absolute path is successful.

Is it possible to add the suppression mechanism of the protocol if it is present for the above file?