<div dir="ltr"><div>Hello Hans,<br></div><div><br></div><div>The recipe has been fixed (and uploaded) and the PHP 7.2 compatibility should be complete now.</div><div> No features were harmed in the making the fix :)<br></div><div><br></div><div>Regards,</div><div>Dominique</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 12, 2019 at 2:18 PM Hans <<a href="mailto:design@bracker.uk">design@bracker.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Dominique,<br>
when using any of the arithmetic Markup Expressions from<br>
MarkupExprPlus <a href="https://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus</a><br>
it is throwing error on PHP 7.2:<br>
"Deprecated: Function create_function() is deprecated in ...pmwiki.php on line 499"<br>
<br>
I can see from the code in markupexprplus.php that the arithmetic MEs<br>
using PPRE() calls, which leads to PCCF() calls, which leads to the<br>
error. Is this fixable?<br>
The recipe is flagged to be PHP 7.2 compatible, but apparently it is<br>
not.<br>
<br>
For my very simple purposes I could substitute the arithmetic MEs<br>
with some very simple code:<br>
$MarkupExpr['add'] = '$args[0] + $args[1]';<br>
$MarkupExpr['sub'] = '$args[0] - $args[1]';<br>
$MarkupExpr['mul'] = '$args[0] * $args[1]';<br>
$MarkupExpr['div'] = '$args[0] / $args[1]';<br>
<br>
but the MarkupExprPlus MEs allowed for more complex expressions.<br>
<br>
<br>
Best regards,<br>
 Hans      <br>
<br>
</blockquote></div>