Hello Hans, The recipe has been fixed (and uploaded) and the PHP 7.2 compatibility should be complete now. No features were harmed in the making the fix :)
Regards, Dominique On Tue, Nov 12, 2019 at 2:18 PM Hans <[email protected]> wrote: > Hello Dominique, > when using any of the arithmetic Markup Expressions from > MarkupExprPlus https://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus > it is throwing error on PHP 7.2: > "Deprecated: Function create_function() is deprecated in ...pmwiki.php on > line 499" > > I can see from the code in markupexprplus.php that the arithmetic MEs > using PPRE() calls, which leads to PCCF() calls, which leads to the > error. Is this fixable? > The recipe is flagged to be PHP 7.2 compatible, but apparently it is > not. > > For my very simple purposes I could substitute the arithmetic MEs > with some very simple code: > $MarkupExpr['add'] = '$args[0] + $args[1]'; > $MarkupExpr['sub'] = '$args[0] - $args[1]'; > $MarkupExpr['mul'] = '$args[0] * $args[1]'; > $MarkupExpr['div'] = '$args[0] / $args[1]'; > > but the MarkupExprPlus MEs allowed for more complex expressions. > > > Best regards, > Hans > >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
