I want to be able to work with phar
command line tool (on Debian Linux) like described on this manpage.
What I've done so far:
downloaded the PHP PHAR source folder;
moved it to
/usr/share/
;altered the first line of the
phar.php
from#!/usr/local/bin/php
to#!/usr/bin/php
(path to the PHP symlink -> to the PHP executable file);created a symlink
phar
to/usr/share/phar/phar.php
.
Now phar help
returns an error:
# phar help
PHP Fatal error: Uncaught exception 'PharException' with message 'manifest cannot be larger than 100 MB in phar "/usr/share/phar/phar.php"' in /usr/share/phar/phar.php:48
Stack trace:
#0 /usr/share/phar/phar.php(48): Phar::mapPhar()
#1 {main}
thrown in /usr/share/phar/phar.php on line 48
What am I doing wrong? How to get it working?
Thx