GeoIP2-php icon indicating copy to clipboard operation
GeoIP2-php copied to clipboard

GeoIP2.phar 2.9.0 don't work with Joomla > 3.9.2

Open jurihahn opened this issue 7 years ago • 6 comments

https://github.com/joomla/joomla-cms/issues/24176 https://github.com/TYPO3/phar-stream-wrapper/issues/21 https://github.com/TYPO3/phar-stream-wrapper/pull/22

jurihahn avatar Apr 10 '19 19:04 jurihahn

From those issues, it isn't clear to me that this is a bug in geoip2.phar as opposed to the Phar loader that is being used. If you could provide a simple standalone test case, that would be helpful.

However, as mentioned in the documentation, using a Phar is discouraged. It is recommended that you install this with Composer.

oschwald avatar Apr 10 '19 20:04 oschwald

I described how to reproduce this error: https://github.com/joomla/joomla-cms/issues/23907

jurihahn avatar Apr 11 '19 07:04 jurihahn

According to the discussion there, It appears that https://github.com/TYPO3/phar-stream-wrapper/pull/15 was supposed to fix this. Is this not the case? This seems outside of our control. Again, I would recommend not using the Phar at all.

oschwald avatar Apr 11 '19 14:04 oschwald

Maybe you can pack the other packer PHAR. Here it is described that you can work around this error: https://github.com/TYPO3/phar-stream-wrapper/issues/21#issuecomment-473685969 But I did not succeed.

jurihahn avatar Apr 11 '19 15:04 jurihahn

i have workaround: require_once ( 'phar://' . __DIR__ . '/geoip2.phar/vendor/autoload.php' );

jurihahn avatar Apr 11 '19 20:04 jurihahn

Closing as this doesn't seem to be related to anything in particular about our Phar. It looks like the Phar loader in question has fixed the issue.

oschwald avatar May 17 '19 21:05 oschwald