-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to smarty 5 #865
Update to smarty 5 #865
Conversation
Wow!!! You're on a roll. Smarty5 and the outlook on changes was what killed me. If this is working this would be insanely great and a HUGE step towards keeping s9y alive. I love you! 🥹 |
Also removes unused code from the smarty security wrapper
As for testing:
But one step at a time :) |
Love you too ;) You caused me a bad conscience though, the testing was very preliminary. Only the later commit fixed entry creation, after your comment.
It gets repopulated properly :)
Yes, the system works. In fact it's necessary to add the php functions to that system that were provided by Serendipity_Smarty_Security_Policy before. I did that in 732f671. Sadly the code in the documentation that shows the registration without a custom function did not work for me (complained about i.e.
This could maybe need some unittests... In general those seem to work though, otherwise the dev blog would not render.
Right, that was removed:
I did not notice usage of that, ofc I might have just missed it. |
Happens in a test environment
Fails on PHP 8.1, though it should work
@garvinhicking I added some test cases now. They don't cover all those functions, but they do test that a few custom modifiers work, as well as one PHP function and modifier that were broken after the smarty 5 upgrade initially. Let's merge this? |
IMO this is the only way forward. We need to adopt here or get left behind too much. I trust in your work so far, couldn't check/test it out myself though. Generally this looks like a good approach, so.... fingers crossed? Leeeeroyyyyyyyyyyy |
Worst case we revert and try again :) I merged it |
Composer update to smarty 5 + necessary fixes to get the smarty classes working again.
Tested superficially in my test blog only so far. https://smarty-php.github.io/smarty/5.x/upgrading/#backwards-incompatible-changes-to-custom-plugins lists a lot of removals, I'd be surprised if this was everything to do.