<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body 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:  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>    /**</div>
        </div>
        <div>
          <div>     * Translates the given string.</div>
        </div>
        <div>
          <div>     *</div>
        </div>
        <div>
          <div>     * @param string $str String to be translated.</div>
        </div>
        <div>
          <div>     *</div>
        </div>
        <div>
          <div>     * @return string</div>
        </div>
        <div>
          <div>     */</div>
        </div>
        <div>
          <div>    function __($str)</div>
        </div>
        <div>
          <div>    {</div>
        </div>
        <div>
          <div>        return $str;</div>
        </div>
        <div>
          <div>    }</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. </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. </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 class="moz-txt-link-abbreviated" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a></a>&gt;
        wrote:<br>
        <br>
        <blockquote type="cite">On Fri, Apr 22, 2016 at 4:18 PM, Jim
          Hu &lt;<a moz-do-not-send="true"
            href="mailto:jim.hu.biobio@gmail.com">jim.hu.biobio@gmail.com</a>&gt; 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>
          -- <br>
          brandon s allbery kf8nh                               sine
          nomine associates<br>
          <a class="moz-txt-link-abbreviated" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>                               
            <a class="moz-txt-link-abbreviated" href="mailto:ballbery@sinenomine.net">ballbery@sinenomine.net</a><br>
          unix, openafs, kerberos, infrastructure, xmonad      
           <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>
  </body>
</html>