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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri May 03 22:01:33 2024 UTC