I am using PHP Version 5.3.15 on OpenSUSE. Following is in my php.ini:
[Phar]
; http://php.net/phar.readonly
phar.readonly = Off
; http://php.net/phar.require-hash
phar.require_hash = Off
;phar.cache_list =
When I try to execute phar using CLI, I get a class not found error for Phar:
php composer.phar install
PHP Fatal error: Class 'Phar' not found in /srv/www/htdocs/composer.phar on line 13
I tried searching everywhere but can't seem to find a reason. Please help.
It looks like you don't have the php5-phar RPM package installed. After installing it with your favorite package manager (e.g. YaST), it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With