Closed esurov closed 1 year ago
gene@Genes-MacBook-Air PHP-Antimalware-Scanner % composer build
php bin/build PHP Fatal error: Uncaught UnexpectedValueException: creating archive "/Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/dist/scanner.phar" disabled by the php.ini setting phar.readonly in /Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/bin/build:31 Stack trace: 0 /Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/bin/build(31): Phar->__construct('/Users/gene/Wor...') 1 {main} thrown in /Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/bin/build on line 31 Script php bin/build handling the build event returned with error code 255
php bin/build PHP Fatal error: Uncaught UnexpectedValueException: creating archive "/Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/dist/scanner.phar" disabled by the php.ini setting phar.readonly in /Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/bin/build:31 Stack trace:
thrown in /Users/gene/Work/WordPress Antivirus Project/PHP-Antimalware-Scanner/bin/build on line 31 Script php bin/build handling the build event returned with error code 255
Adding phar.readonly = Off to php.ini solved the problem
phar.readonly = Off
php.ini
I created a PR to check whether this is set to On: https://github.com/marcocesarato/PHP-Antimalware-Scanner/pull/88
gene@Genes-MacBook-Air PHP-Antimalware-Scanner % composer build