php55 extension to use __()?
Jim Hu
jim.hu.biobio at gmail.com
Fri Apr 22 13:57:49 PDT 2016
Thanks, I should have provided more detail. The error I get is:
PHP Fatal error: Call to undefined function __() in [path_removed]/libraries/sanitizing.lib.php on line 135
which suggests that the sanitizing.lib.php must be loading before libraries/sql-parser/src/common.php
But in common.php, the function definition is a fallback wrapped inside
if (!function_exists('__')) {
/**
* Translates the given string.
*
* @param string $str String to be translated.
*
* @return string
*/
function __($str)
{
return $str;
}
}
So it never gets defined if php can handle __() from a predefined library. Which makes me think that there are two issues.
- for MacPorts php, what do I need so that the function exists.
- for phpmyadmin devs, why common.php isn't loading first.
I'll try to find some support channel for phpmyadmin to submit the second.
Jim
On Apr 22, 2016, at 3:34 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Fri, Apr 22, 2016 at 4:18 PM, Jim Hu <jim.hu.biobio at gmail.com> wrote:
> From what I can find online, __() is a shortcut for a translation function used in internationalization.
>
> 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.
>
> --
> brandon s allbery kf8nh sine nomine associates
> allbery.b at gmail.com ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20160422/0862747d/attachment.html>
More information about the macports-users
mailing list