I need to modify a PHAR file. Whenever I make changes to the file and then execute it I get the following error message:
Fatal error: Uncaught exception 'PharException' with message SHA1 signature could not be verified: broken signature'
By doing some research I found out that I can either
extract the phar, modify it and then "put it back into a phar file". How do I do that?
or set
phar.require_hash = false
in my php.ini to disable the signature checking. This did not solve the problem unfortunately
I only have to do a few simple modifactions to the file and I'm the only one who is going to use it so I would prefer a quick and easy solution to the problem
phar.require_hash=0
to php.ini. Try things!