Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
gettext /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
66265
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
locale
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
44938.phpt
2.07
KB
-rw-rw-r--
2022-10-31 11:36
bug66267.phpt
983
B
-rw-rw-r--
2022-10-31 11:36
bug73730.phpt
289
B
-rw-rw-r--
2022-10-31 11:36
dcngettext.phpt
685
B
-rw-rw-r--
2022-10-31 11:36
gettext_basic-enus.phpt
597
B
-rw-rw-r--
2022-10-31 11:36
gettext_basic.phpt
436
B
-rw-rw-r--
2022-10-31 11:36
gettext_bind_textdomain_codeset-retval.phpt
408
B
-rw-rw-r--
2022-10-31 11:36
gettext_bindtextdomain-cwd.phpt
712
B
-rw-rw-r--
2022-10-31 11:36
gettext_bindtextdomain-emptydomain.phpt
401
B
-rw-rw-r--
2022-10-31 11:36
gettext_bindtextdomain-path.phpt
358
B
-rw-rw-r--
2022-10-31 11:36
gettext_dcgettext.phpt
700
B
-rw-rw-r--
2022-10-31 11:36
gettext_dgettext.phpt
802
B
-rw-rw-r--
2022-10-31 11:36
gettext_dngettext-plural.phpt
667
B
-rw-rw-r--
2022-10-31 11:36
gettext_ngettext.phpt
620
B
-rw-rw-r--
2022-10-31 11:36
gettext_phpinfo.phpt
301
B
-rw-rw-r--
2022-10-31 11:36
gettext_textdomain-retval.phpt
527
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--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(__DIR__ . 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== --EXPECT-- LC_ALL=de_DE hello=hallo LC_ALL=fr_FR hello=salut LC_ALL=en_US hello=hello ==DONE==