<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><a href="http://docs.phpmyadmin.net/en/latest/require.html#php">http://docs.phpmyadmin.net/en/latest/require.html#php</a><div><br></div><div>php5.5.0 or newer with session support. I'm wondering if this could have something to do with not having session support properly set up in my php.ini?</div><div><br><div><div>On Apr 25, 2016, at 11:35 AM, Russell Jones &lt;russell.jones@physics.ox.ac.uk&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Just a hunch-- could it be that PHP7 defines it, but it does
    something other than what phpmyadmin expects?<br>
    <br>
    Russell<br>
    <br>
    <div class="moz-cite-prefix">On 22/04/16 21:57, Jim Hu wrote:<br>
    </div>
    <blockquote cite="mid:FD407454-E63A-4D0F-8AA5-99C7D62E44CE@gmail.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Thanks, I should have provided more detail. The error I get is:<br>
      <br>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;">PHP Fatal error: &nbsp;Call to undefined function __() in
        [path_removed]/libraries/sanitizing.lib.php on line 135</blockquote>
      <div><br>
      </div>
      <div>which suggests that the sanitizing.lib.php must be loading
        before libraries/sql-parser/src/common.php</div>
      <div><br>
      </div>
      <div>But in common.php, the function definition is a fallback
        wrapped inside</div>
      <div><br>
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;">
        <div>
          <div>if (!function_exists('__')) {</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; /**</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;* Translates the given string.</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;*</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;* @param string $str String to be translated.</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;*</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;* @return string</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp;*/</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; function __($str)</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; {</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; return $str;</div>
        </div>
        <div>
          <div>&nbsp; &nbsp; }</div>
        </div>
        <div>
          <div>}</div>
        </div>
      </blockquote>
      <div><br>
      </div>
      <div>So it never gets defined if php can handle __() from a
        predefined library. Which makes me think that there are two
        issues.&nbsp;</div>
      <div><br>
      </div>
      <div>- for MacPorts php, what do I need so that the function
        exists.</div>
      <div>- for phpmyadmin devs, why common.php isn't loading first.</div>
      <div><br>
      </div>
      <div>I'll try to find some support channel for phpmyadmin to
        submit the second.&nbsp;</div>
      <div><br>
      </div>
      <div>Jim</div>
      <div><br>
        On Apr 22, 2016, at 3:34 PM, Brandon Allbery &lt;<a moz-do-not-send="true" href="mailto:allbery.b@gmail.com"></a><a class="moz-txt-link-abbreviated" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt;
        wrote:<br>
        <br>
        <blockquote type="cite">On Fri, Apr 22, 2016 at 4:18 PM, Jim
          Hu&nbsp;&lt;<a moz-do-not-send="true" href="mailto:jim.hu.biobio@gmail.com">jim.hu.biobio@gmail.com</a>&gt;&nbsp;wrote:<br>
          From what I can find online, __() is a shortcut for a
          translation function used in internationalization.<br>
          <br>
          What I am seeing is that in phpMyAdmin 4.6 this is not part of
          gettext but is defined in sql-parser/src/common.php.<br>
          <br>
          --&nbsp;<br>
          brandon s allbery kf8nh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sine
          nomine associates<br>
          <a class="moz-txt-link-abbreviated" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          &nbsp;&nbsp;<a class="moz-txt-link-abbreviated" href="mailto:ballbery@sinenomine.net">ballbery@sinenomine.net</a><br>
          unix, openafs, kerberos, infrastructure, xmonad &nbsp; &nbsp; &nbsp;
          &nbsp;<a class="moz-txt-link-freetext" href="http://sinenomine.net/">http://sinenomine.net</a><br>
        </blockquote>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
macports-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a>
<a class="moz-txt-link-freetext" href="https://lists.macosforge.org/mailman/listinfo/macports-users">https://lists.macosforge.org/mailman/listinfo/macports-users</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>macports-users mailing list<br>macports-users@lists.macosforge.org<br>https://lists.macosforge.org/mailman/listinfo/macports-users<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">=====================================<br>Jim Hu<br>Professor<br>Dept. of Biochemistry and Biophysics<br>2128 TAMU<br>Texas A&amp;M Univ.<br>College Station, TX 77843-2128<br>979-862-4054</span>

</div>
<br></div></body></html>