Re: putenv and gettext
| From: | Richard Ellerbrock | Date: | Fri, 10 May 2002 15:06:04 +0000 |
| Subject: | Re: putenv and gettext | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96955@lists.php.net to get a copy of this message | ||
On Wed, 08 May 2002 22:09:59 +0200, Gerard Samuel wrote:
> The reason for this thought was that I have given up on gettext because
> it requires putenv(), and most people who are using my script wouldn't
> be able to use it because safe_mode is on.
You are correct! But this is how the gettext library works, which has
nothing to do with php. One thing you could do is to add:
safe_mode_allowed_env_vars = PHP_,LANGUAGE
to your php.ini file. This should be safe enough for safe_mode!