pk-fr / yakpro-po

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

Issues with php 7.4 #50

Closed alekseyp closed 4 years ago

alekseyp commented 4 years ago

I know php7.4 is still not released but I wanted to share an issue I'm facing. (works well with other PHP versions)

Exception ParseError:syntax error, unexpected 'FN' (T_FN), expecting identifier (T_STRING)

In my particular case, I'm runnign it as:

yakpro-po/yakpro-po.php --scramble-length 2 --scramble-mode identifier --no-obfuscate-namespace-name --no-obfuscate-method-name --no-obfuscate-property-name --no-obfuscate-trait-name --no-obfuscate-interface-name --no-obfuscate-class-name --no-obfuscate-class_constant-name --no-obfuscate-constant-name --no-obfuscate-function-name

alekseyp commented 4 years ago

FN is a reserved word in php7.4 now and should be excluded.

pk-fr commented 4 years ago

thanks for your early report... fixed in 2.0.6