PHP: Phing, Phar and phar.readonly

I use the PHP build system phingto create an archive file phar.

Is there any known science that will allow me to automatically set phar.readonlyto 0(which will allow me to pharknow) during the run phing, but leave the value on it 0at any other time?

+4
source share
1 answer

phar.readonly can only be installed in PHP.INI

Their documentation says that it can be installed ini_set()("phar.readonly" 1 "PHP_INI_ALL"), but it cannot.

$ php -r "ini_set('phar.readonly',0);print(ini_get('phar.readonly'));" 1

Update http://php.net/manual/en/phar.configuration.php

php.ini - . phar.readonly php.ini, phar.readonly script . php.readonly php.ini, script " " INI, .

+6

Source: https://habr.com/ru/post/1622393/


All Articles