Consider the following
error_reporting(E_ALL);
setlocale("LC_TIME", "nl_NL");
this will give the following warning:
Warning: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /www/htdocs/test.php on line 1
strangely enough... the locale IS set correctly and in the manual there is nothing about LC_* constants:
"string setlocale (string category, string locale)
If locale is the empty string "", the locale names will be set from the values of environment variables with the same names as the above categories, or from "LANG".
If locale is zero or "0", the locale setting is not affected, only the current setting is returned"
I'm confused....