Bug #52873 [Opn->Csd]: Exemple throw an exception in PHP 5.3

From: Date: Fri, 17 Sep 2010 15:44:32 +0000
Subject: Bug #52873 [Opn->Csd]: Exemple throw an exception in PHP 5.3
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5063@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52873&edit=1 ID: 52873 User updated by: fmaz008 at gmail dot com Reported by: fmaz008 at gmail dot com Summary: Exemple throw an exception in PHP 5.3 -Status: Open +Status: Closed Type: Bug Package: Documentation problem Operating System: linux PHP Version: 5.3.3 Block user comment: N New Comment: My mistake, I was confusing the first and the second parameter. Previous Comments: ------------------------------------------------------------------------ [2010-09-17 17:42:21] fmaz008 at gmail dot com It's about http://php.net/manual/en/function.setlocale.php ------------------------------------------------------------------------ [2010-09-17 17:40:48] fmaz008 at gmail dot com Description: ------------ The examples doesn't use the LC_* constants, so using the example under PHP 5.3 will throw the following exception: Deprecated: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead Also, the manual could (should ?) give a link to a list of the constant. (Out of topic, but also, I can't figure out how to store local in a database. Many sites use multiple locale, and MySQL can't store php constant. Using the numeric value or the constant could be a valid solution if a function to convert locale String <-> locale Integer would be available) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52873&edit=1

« previous php.doc.bugs (#5063) next »