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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC