> I've been getting a warning on one of my scripts since I upgraded from
4.1.2
> to the most recent version of PHP.  The warning is:
>
> Warning: setlocale(): Passing locale category name as string is
deprecated.
> Use the LC_* -constants instead
>
>
> The script at the line that is failing sez:
>
> setlocale ("LC_TIME", "$locale");

"LC_TIME" is a string... LC_TIME is a constant...

Like the warning says, use a constant.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to