Open caucik opened 4 years ago
I can confirm this. As far as I can tell, the differences are codestyle related, variable declarations being moved around et cetera. But I cannot find any smarty-lexer
version that matches the existing version that is in smarty
now. It seems Uwe used a newer version of smarty-lexer
but did not push his local changes to github. Can you confirm this, @uwetews ?
This should be checked in CI in smarty-php/smarty
repo to prevent this happening again. PR welcome.
All 4 files generated using smarty-lexer differs from those shipped in smarty repository. Steps to reproduce: mkdir /tmp/smarty-test cd /tmp/smarty-test git clone https://github.com/smarty-php/smarty.git git clone https://github.com/smarty-php/smarty-lexer.git cd smarty-lexer/ php Create_Template_Parser.php php Create_Config_Parser.php
now compare .bak versions with newly generated version - for templateparser:
diff ../smarty/lexer/smarty_internal_templateparser.php.bak ../smarty/libs/sysplugins/smarty_internal_templateparser.php
same for 3 other files