Re: I18Nv2 - safemode
| From: | Michael Wallner | Date: | Sat, 01 May 2004 19:51:54 +0000 |
| Subject: | Re: I18Nv2 - safemode | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12270@lists.php.net to get a copy of this message | ||
mishal@centrum.cz wrote:
hello list! when using I18Nv2::setLocale('XXX'); i get these errors, Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in [...]Ouch... if you use gettext and it doesn't recognize the locale, you should poke your admin to allow setting LANG[UAGE] through putenv().
of course i can silence these errors using @I18Nv2::setLocale('xxx') but i think this should be done inside the class, or not :)?Yes, agreed :) thanks for mentioning! -- mike