[pmwiki-users] Cookbook MarkupExprPlus

Dominique Faure dominique.faure at gmail.com
Tue Nov 12 12:03:24 PST 2019


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 <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
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20191112/60e6e78c/attachment.html>


More information about the pmwiki-users mailing list