smarty
smarty copied to clipboard
Render crash on changing file include modes
trafficstars
PHP Notice: Undefined index: 957e065e65187cb9f8a1b05a74e90f4f1b7188b0 in .../vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 322
PHP Fatal error: Uncaught --> Smarty: plugin Smarty_Resource_ is not a valid name format <--
thrown in .../vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php on line 40
The reproduction case will follow.
Note the change from regular to inline include at https://github.com/AnrDaemon/test-001/blob/smarty-639/testcase.php#L10-L11
Using eval: source, the code will work, but setting $smarty->setForceCompile(true); won't change the situation.
Reordering include lines so that regular include is last will also work.