php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52873 Exemple throw an exception in PHP 5.3
Submitted: 2010-09-17 17:40 UTC Modified: 2010-09-17 17:44 UTC
From: fmaz008 at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.3.3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fmaz008 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-09-17 17:40 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-17 17:42 UTC] fmaz008 at gmail dot com
It's about http://php.net/manual/en/function.setlocale.php
 [2010-09-17 17:44 UTC] fmaz008 at gmail dot com
-Status: Open +Status: Closed
 [2010-09-17 17:44 UTC] fmaz008 at gmail dot com
My mistake, I was confusing the first and the second parameter.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 16:00:02 2026 UTC