php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74048 Should explain how Collator::create() compares to new Collator()
Submitted: 2017-02-05 18:30 UTC Modified: 2017-02-06 14:29 UTC
From: teo8976 at gmail dot com Assigned:
Status: Verified Package: intl (PECL)
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: teo8976 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-02-05 18:30 UTC] teo8976 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/collator.create
---

Collator has a constructor and a static create() method.
No clue is given in the documentaion about why one should use "Collator::create()" rather than the constructor  "new Collator()". If thery are completely equivalent then it must be stated explicitly.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-06 14:29 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: intl
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 15 13:01:35 2019 UTC