marcocesarato / PHP-Antimalware-Scanner

AMWScan (PHP Antimalware Scanner) is a free tool to scan php files and analyze your project to find any malicious code inside it.
https://marcocesarato.github.io/PHP-Antimalware-Scanner/
GNU General Public License v3.0
643 stars 108 forks source link

Build fails #86

Closed esurov closed 1 year ago

esurov commented 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

esurov commented 1 year ago

Adding phar.readonly = Off to php.ini solved the problem

esurov commented 1 year ago

I created a PR to check whether this is set to On: https://github.com/marcocesarato/PHP-Antimalware-Scanner/pull/88