RES: [PHP4BETA] locale not working
| From: | Giancarlo Bonansea | Date: | Sun, 14 Nov 1999 15:10:40 +0000 |
| Subject: | RES: [PHP4BETA] locale not working | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6213@lists.php.net to get a copy of this message | ||
I solved the problem setting /bin/bash for the nobody user, so it receives
locale information when starting Apache. Is this the right way to do it? Is
this a security breach?
Giancarlo
-----Mensagem Original-----
De: Giancarlo Bonansea
Para: 'php4beta@lists.php.net'
Enviada: 14/11/99 12:09
Assunto: [PHP4BETA] locale not working
Hi,
Since I changed the locale information for my computer from "en_US" to
"pt_BR", the phpinfo() does not return locale environment variables and
if I use the setlocale("<envvar>","0"), all variables return
"C". So I
need to use the setlocale in every page. If I return my configuration to
"en_US" then the variables reappear on the phpinfo() ans setlocale()
results.
All other settings and programs work perfectly with locale set to
"pt_BR". Just PHP seems to work differently. Now I'm using the
setlocale() into a auto_prepend_file to solve this issue.
Thanks on some advice,
Giancarlo