[pmwiki-users] Cookbook MarkupExprPlus
dominique.faure at gmail.com
Tue Nov 12 12:03:24 PST 2019
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 :)
On Tue, Nov 12, 2019 at 2:18 PM Hans <design at bracker.uk> 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
> For my very simple purposes I could substitute the arithmetic MEs
> with some very simple code:
> $MarkupExpr['add'] = '$args + $args';
> $MarkupExpr['sub'] = '$args - $args';
> $MarkupExpr['mul'] = '$args * $args';
> $MarkupExpr['div'] = '$args / $args';
> but the MarkupExprPlus MEs allowed for more complex expressions.
> Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users