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
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: 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)

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC