2022-11-01, 09:24:51
(This post was last modified: 2022-11-01, 11:10:57 by vanfruniken.)
(2022-10-28, 02:22:53)shawn_a Wrote: I need plugins to fix, give me examples
Hi Shawn,
I'd like to report warnings on php7.4 for plugins
1. sa_toc_anchors.php, which makes use of create_function(...,...)
This function internally used eval() and was considered a security risk, while also being global, scopeless, not garbage collectable, ... . Under php7 I get a warning and under php8 a fatal error:
Fatal error: Uncaught Error: Call to undefined function create_function() in /.../plugins/sa_toc_anchors.php:45
Any suggestions for replacement code?
2. (already fixed in repo) plugins/i18n_navigation/frontend.class.php: old style constructor near 350
3. plugins/sa_hook_components:74 eval'd code on l64, use of undefined constant trim
4. plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 21
Hopefully my site will run fine as soon as the above are fixed.
FYI, I use the following plugins on my site:
Cookies Plugin by Cumbe
FAQ by Vlcek
GSMaintenance
GSPlugin Installer by Helge Sverre
GS_Shortcodes by Mike Swan
HitCount
I18NBase
I18N
I18Search
ItemManager
SA_hook Components
SA_toc_anchors
Theme Highlighter
Multi User by Mike Henken
p.s. I am thrilled that GS is again moving ahead with more people stepping in to help out.
Will your plugin repository also include updated versions?
BTW, I read that php 8 will also only have a short life. My hosting already kills php 7.x on Nov 1, '22; something similar will happen next year, I am afraid. How long before php (and its function library) can evolve without further code-breaking changes?