pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.29k stars 363 forks source link

PHP Fatal error: Cannot instantiate interface PhpParser\Parser in yakpro-po-master/yakpro-po.php on line 32 #2

Closed ehcpdeveloper closed 8 years ago

ehcpdeveloper commented 8 years ago

PHP Fatal error: Cannot instantiate interface PhpParser\Parser in yakpro-po-master/yakpro-po.php on line 32

when I try to run, I receive this error.

pk-fr commented 8 years ago

I didn't found any problem using my previously cloned PhpParser version. I tried to clone a new one, and have been able to reproduce your bug... after having to modify the [] syntax for arrays... (my development machine is on Ubuntu 12.04 LTS and its php version is 5.3)

diagnostic is the following:

Currently, yakpro-po only works on 1.x branch of PhpParser. A new 2.0.0 alpha1 PHP Parser has been released with a different API, and drop support for PHP < 5.5 unfortunately, This new branch is the default one.

Please use : git clone --branch=1.x https://github.com/nikic/PHP-Parser.git

I will consider using the new 2.0 branch when it is no more Beta or RC.

pk-fr commented 8 years ago

Published the 1.7.2 release of yakpro-po, with check for 1.x branch of PHP Parser. Emits an error message and stops when PHP Parser 1.x branch is not detected!