?
avatar Neugls
Neugls
5 Sep 2015

JPath.clean not works for phar:// or file://, for it will make // to /

like phar://a.phar/index.php, in the JControllerLegacy.addPath, will call the JPath.clean, then the JPath.clean will replace the phar://a.phar/index.php to phar:/a.phar/index.php then php will not find the file in phar

avatar Neugls Neugls - open - 5 Sep 2015
avatar roland-d
roland-d - comment - 5 Sep 2015

Hello @Neugls,

Joomla is not supposed to be run from a Phar archive but needs to be unpacked and then run. So I don't see this is a bug.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7823.

avatar Fedik
Fedik - comment - 5 Sep 2015

@roland-d I guess @Neugls mean support of Protocols and Wrappers http://php.net/manual/en/wrappers.php

avatar Neugls
Neugls - comment - 5 Sep 2015

yes, it's not support Protocols and Wrappers, and why joomla do not support phar

avatar zero-24 zero-24 - change - 5 Sep 2015
Category Feature Request
avatar zero-24 zero-24 - change - 5 Sep 2015
Labels Added: ?
avatar roland-d
roland-d - comment - 14 Sep 2015

@Neugls You asked why Joomla does not support phar, please see issue #4091 where the same question was asked.

As for the support of protocols and wrappers, I don't think that the clean() method is built with that intent. The JPath by it's very nature is meant to deal with local paths and nothing else.

As this is not something to be fixed, I am closing the issue. Thank you for your contribution.

avatar roland-d roland-d - change - 14 Sep 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-09-14 00:26:24
Closed_By roland-d
avatar roland-d roland-d - close - 14 Sep 2015

Add a Comment

Login with GitHub to post a comment