vjardin / bcgen

A bytecode generator (compiler) for PHP7
56 stars 19 forks source link

Shebang support for PHP-CLI #15

Open eoksum opened 5 years ago

eoksum commented 5 years ago

Hi there

It is not possible to execute bcgen encoded files on PHP-CLI where shebang is a must.

I've tried this: http://prntscr.com/npvgbc Also I tried adding opening and closing tags, that also failed.

I would be appreciated to receive any help regarding this matter. Thanks

vjardin commented 5 years ago

It is not on my todo list. You are welcome to contribute about it.

stefanwerfling commented 5 years ago

You can create for CLI a normal script and this include the *.phb. this workt perfectly. Remember that the php cli ini also need the entry for the extension.