I think I (or any other project member) have the access to change the web page to fix the error messages.

Examples of the error messages:

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/groups/d/dy/dynapi/htdocs/dynapi/mainfile.php on line 240

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/groups/d/dy/dynapi/htdocs/dynapi/themes/Default/footer.php on line 47

The files are on projects.sf.net.
The referenced files are in /home/groups/d/dy/dynapi/htdocs/dynapi .

./images/links/links.php:229:   setlocale ("LC_TIME", "$locale");
./images/links/links.php:275:   setlocale ("LC_TIME", "$locale");
./images/links/links.php:352:   setlocale ("LC_TIME", "$locale");
./images/links/links.php:412:   setlocale ("LC_TIME", "$locale");
./images/links/links.php:493:       setlocale ("LC_TIME", "$locale");
./themes/1225AM/footer.php:47: setlocale ("LC_TIME", "$locale");
./themes/Default/footer.php:47: setlocale ("LC_TIME", "$locale");
./links.php:289:        setlocale ("LC_TIME", "$locale");
./links.php:344:        setlocale ("LC_TIME", "$locale");
./links.php:428:        setlocale ("LC_TIME", "$locale");
./links.php:523:        setlocale ("LC_TIME", "$locale");
./links.php:616:            setlocale ("LC_TIME", "$locale");
./mainfile.php:240:     setlocale ("LC_TIME", "$locale");
./mainfile.php:284:             setlocale ("LC_TIME", "$locale");

Quoting the PHP manual:

(PHP 3, PHP 4 )

setlocale -- Set locale information

Description

string setlocale ( mixed category, string locale [, string ...])

string setlocale ( mixed category, array locale)

category is a named constant (or string) specifying the category of the functions affected by the locale setting:

LC_ALL for all of the below
LC_COLLATE for string comparison, see strcoll()
LC_CTYPE for character classification and conversion, for example strtoupper()
LC_MONETARY for localeconv()
LC_NUMERIC for decimal separator (See also localeconv())
LC_TIME for date and time formatting with strftime()


Note: As of PHP 4.2.0, passing category as a string is deprecated, use the above constants instead. Passing them as a string (within quotes) will result in a warning message.

On 2004-12-21 projects.sf.net upgraded to php 4.3.10, so this is deprecated.

Example changes:

OLD:
./mainfile.php:240:     setlocale ("LC_TIME", "$locale");

NEW:
./mainfile.php:240:     setlocale (LC_TIME, "$locale");


Anyone have any objections to me going ahead to make these changes?


Leif





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Dynapi-Dev mailing list
Dynapi-Dev@lists.sourceforge.net
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to