php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65876 Missing third parameter in example
Submitted: 2013-10-10 16:46 UTC Modified: 2013-10-12 22:58 UTC
From: php at dustingraham dot com Assigned: googleguy (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
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: php at dustingraham dot com
New email:
PHP Version: OS:

 

 [2013-10-10 16:46 UTC] php at dustingraham dot com
Description:
------------
---
From manual page: http://www.php.net/locale.lookup#refsect1-locale.lookup-examples
---

The third parameter should be "false" and the default value goes in the fourth parameter. This example shows a default value in the third parameter which will (and did to me) mislead people into thinking they have a default value set.




Patches

bug-65876-locale.diff (last revision 2013-10-12 21:56 UTC by dean at deansas dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-12 22:58 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-10-12 22:58 UTC] googleguy@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 23:01:32 2024 UTC