Simon Wisselink
6635a5e3fb
Smarty no longer calls mb_internal_encoding() and doesn't check for deprecated mbstring.func_overload ini directive.
...
Fixes #480 .
2023-01-31 10:53:10 +01:00
Simon Wisselink
1a8ee6ebda
Merge branch 'master' into smarty5
2023-01-24 12:53:58 +01:00
Simon Wisselink
9cc60f5e38
Convert isset and empty to modifiercomilers, and smooth the error handling to fix unit tests.
2023-01-24 12:01:20 +01:00
Simon Wisselink
ad2703dd75
Handle BC registered compilers and missed parameters for openTag and closeTag.
2023-01-23 12:08:36 +01:00
Simon Wisselink
2fbf67b32e
Moved handling of smarty.block.* to special compilers, because they aren't real tags. Organized tag-stack handling in compiler, unified nocache handling in compiler.
2023-01-20 17:22:00 +01:00
Simon Wisselink
390f34318d
Fixed cacheability of block plugins.
2023-01-19 23:29:10 +01:00
Simon Wisselink
cdf1ed2a50
Simplified the (no)caching architecture by:
...
- removing support for $cache_attrs for registered plugins,
- removing the undocumented {make_nocache} tag and the deprecated {insert} tag and associated code
- removing support for a compile_id property on include tags.
Fixes a bug in extends: resources by propagating the nocache-hashes between a master template and it's subtemplates in \Smarty\Template::_subTemplateRender. This might need further improvement.
2023-01-13 15:47:57 +01:00
Simon Wisselink
9016dd9908
Added strlen function, fixing some unit tests
2023-01-09 11:54:13 +01:00
Simon Wisselink
fd64cc688a
Removed PHP functions and checks for the already removed php modifiers. Re-implemented functions as regular functions. Probably should compile these directly.
2023-01-07 23:06:47 +01:00
Simon Wisselink
e595cd2a5d
Fixed BC loading of resource pluging from dir and all ResourcePluginTest tests
2023-01-06 21:53:37 +01:00
Simon Wisselink
1f87cebb93
Make DefaultExtension lazy load again.
2023-01-06 21:41:23 +01:00
Simon Wisselink
608a400e66
Fix scoping / global state problems in tests by using DI in Default Extension. Also removing a bunch of old fashioned phpdoc annotations that are superseded by namespaces.
2023-01-05 23:07:45 +01:00
Simon Wisselink
41054cfb05
Fixed DefaultPluginHandlerTest for function plugins (blocks still break)
2023-01-04 12:16:10 +01:00
Simon Wisselink
3fccb54093
Fixed CacheResource implementation and tests
2023-01-03 17:10:02 +01:00
Simon Wisselink
b9ecf115dd
fixed pre/post/output filters and removed some old todo-comments
2023-01-02 23:26:36 +01:00
Simon Wisselink
60a56969dd
WIP moving Smarty to PSR-4.
2023-01-02 00:49:38 +01:00
Simon Wisselink
6b9e2fadd1
Rewrote remaining plugins to PSR-4, plugins dir is now gone.
2022-12-25 14:02:15 +01:00
Simon Wisselink
ab5705a90d
Rewrote all default modifiers and functions from the plugins folder to PSR-4 classes
2022-12-24 23:38:13 +01:00
Simon Wisselink
57cff64869
Add makefile, PSR-4 ModifierCompilers
2022-12-23 14:03:05 +01:00