diff options
| author | Simon Wisselink <s.wisselink@iwink.nl> | 2024-12-27 23:08:17 +0100 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2024-12-27 23:08:17 +0100 |
| commit | fb997111f46c069ee140829a220bb3b69b34969b (patch) | |
| tree | b4fa1ca4f7516bebe5ec9179c9dbce9c60a561c7 /docs | |
| parent | c6bff5795081ca5e60aabda59fb87daa511acd1e (diff) | |
| download | smarty-fb997111f46c069ee140829a220bb3b69b34969b.tar.gz smarty-fb997111f46c069ee140829a220bb3b69b34969b.tar.bz2 smarty-fb997111f46c069ee140829a220bb3b69b34969b.zip | |
Add note to docs about plugins that expect parameters by reference
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/upgrading.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/upgrading.md b/docs/upgrading.md index ef9cc4c9..2bb36fe5 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -49,6 +49,11 @@ $smarty->registerPlugin('modifier', 'my_special_func', 'my_special_func'); But you may want to consider writing a proper [extension](api/extending/extensions.md). +#### Passing parameters by reference +You cannot use plugins that expect a parameter by reference anymore. PHP-function such as `reset()`, `prev()`, +`next()` and `end()` can be registered as plugin, but they won't work because they expect a parameter by +reference and Smarty will try to pass it by value. + ### Removed undocumented tags Smarty 4 still supported some tags that have been carried over from previous version, but have never been documented. |
