Bug #52873 [NEW]: Exemple throw an exception in PHP 5.3

From: Date: Fri, 17 Sep 2010 15:40:48 +0000
Subject: Bug #52873 [NEW]: Exemple throw an exception in PHP 5.3
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5061@lists.php.net to get a copy of this message
From: Operating system: linux PHP version: 5.3.3 Package: Documentation problem Bug Type: Bug Bug description:Exemple throw an exception in PHP 5.3 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 bug report at http://bugs.php.net/bug.php?id=52873&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52873&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52873&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52873&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52873&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52873&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52873&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52873&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52873&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52873&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52873&r=support Expected behavior: http://bugs.php.net/fix.php?id=52873&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52873&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52873&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52873&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52873&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52873&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52873&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52873&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52873&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52873&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52873&r=mysqlcfg

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