<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That certainly got rid of the error, and my equations still show up.  Thanks!  I don’t know what the whole “collision” thing on the cookbook page was about,
 then…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Peter Bowers [mailto:pbowers@pobox.com]
<br>
<b>Sent:</b> Thursday, October 25, 2012 2:13 PM<br>
<b>To:</b> David Spitzley<br>
<b>Subject:</b> Re: [pmwiki-users] asciimath workaround?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I think you can just delete the ampersand on line 84 in cookbook/asciimath.php and everything will be perfect.<br>
<br>
       $ascii_math =& new ASCIIMathPHP($symbol_arr, $ascii, $MathMLNSAlias);<br>
<br>
will become<br>
<br>
      $ascii_math = new ASCIIMathPHP($symbol_arr, $ascii, $MathMLNSAlias);<br>
<br>
If it works post back to the group with the solution.  If it doesn't work I maintain a plausible deniability... :-)<br>
<br>
-Peter<o:p></o:p></p>
<div>
<p class="MsoNormal">On Thu, Oct 25, 2012 at 4:12 PM, David Spitzley <<a href="mailto:dspitzle@wash.k12.mi.us" target="_blank">dspitzle@wash.k12.mi.us</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">After not visiting my wiki for a while, I've discovered that I'm getting the following PHP warning message:<br>
Deprecated: Assigning the return value of new by reference is deprecated in [DIRECTORY_STRUCTURE]/cookbook/asciimath.php on line 84<br>
<br>
I know a reasonable amount about PHP, but have never used the reference mechanism.  There's also a notice on
<a href="http://www.pmwiki.org/wiki/Cookbook/ASCIIMath-Talk" target="_blank">http://www.pmwiki.org/wiki/Cookbook/ASCIIMath-Talk</a> that "This recipe seems to have a collision with with markup like {$pagetextvar}. In other words, it seems to currently be broken,
 and I can't see how to fix it except to disable that markup in asciimath.php" .  Does that "collision" account for the deprecation warning above?  If so, how would I disable the markup causing the problem?  If not, any suggestions on a workaround?<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>