[pmwiki-users] setlocale() warning

Masschelein Bart masschel at imec.be
Thu Jun 2 03:34:39 CDT 2005


Hello,

We're running PHP Version 5.0.3, on HPUX. The server API is Apache. Unfortunately, I cannot show you a url, as it is (or will be) installed on the intranet of my work. I also just installed it on my own pc at work, using my own local Apache and PHP Version 5.0.4, and there I dont have any problem. Could it concern write protection, or maybe the safe_mode_gid = On issue? I got no answer back from the webmaster yet about this one.

Bart.

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: Wednesday, June 01, 2005 19:13
To: Masschelein Bart
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] setlocale() warning


On Wed, Jun 01, 2005 at 06:55:33PM +0200, Masschelein Bart wrote:
>     Warning: setlocale() [function.setlocale]: Passing locale category name
>    as string is deprecated. Use the LC_* -constants instead. in
>    /imec/other/d6mm/public_html/pmwiki/pmwiki.php on line 118

What version of PHP are you running?

>    When I look at the corresponding line 118, I see
>     
>    if (preg_match('/^C$|\.UTF-?8/i',setlocale(LC_ALL,0)))
>      setlocale(LC_ALL,'en_US');
>     
>    so this seems ok.

Indeed, it does seem okay to me -- I'm guessing there must be
something else at play here.

Is there a url we could look at?  If so, can you set $EnableDiag=1;
in the config.php ?

Pm




More information about the pmwiki-users mailing list