????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.14.72.80 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/gettext/tests/ |
Upload File : |
--TEST-- #66265: gettext doesn't switch locales within the same script --SKIPIF-- <?php if (!extension_loaded("gettext")) { die("skip\n"); } if (PHP_ZTS) { /* this is supposed to fail on the TS build at least on Windows, should be even XFAIL till it's fixed there */ die("skip NTS only"); } if (substr(PHP_OS, 0, 3) != 'WIN') { $loc = ["de_DE", "fr_FR", "en_US"]; foreach($loc as $l) { if (!setlocale(LC_ALL, $l)) { die("SKIP '$l' locale not supported."); } } } ?> --FILE-- <?php $domain = 'domain'; $loc = ["de_DE", "fr_FR", "en_US"]; foreach ($loc as $l) { putenv("LC_ALL=$l"); setlocale(LC_ALL, $l); $path = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . "66265"); bindtextdomain($domain, $path); bind_textdomain_codeset($domain, "UTF-8"); textdomain($domain); echo 'LC_ALL=', getenv('LC_ALL'), "\n"; echo 'hello=', _('hello'), "\n"; echo "\n"; } ?> ==DONE== --EXPECTF-- LC_ALL=de_DE hello=hallo LC_ALL=fr_FR hello=salut LC_ALL=en_US hello=hello ==DONE==