box-project/box2

Cann't Build phar file

Closed this issue · 2 comments

nahid commented

I want to build a phar file. When I run command box build it display an error look like this.

[UnexpectedValueException]                                                                       
  creating archive "/Users/nahid/myphar/myphar.phar" disabled by the php.ini setting phar.readonly

I set phar.readonly=Offalso but it does not work

Can you run php -i and share the output? It looks like that the INI setting is not being applied to the environment you are using.

Old question but the problem maybe can be the semicolon comment character in that line of php.ini.