|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66839 Docs list getConstList() for splEnum as static
Submitted: 2014-03-07 00:18 UTC Modified: 2017-01-10 08:14 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: dthomas at austincc dot edu Assigned:
Status: Suspended Package: SPL_Types (PECL)
PHP Version: 5.5.10 OS: Windows, All?
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:
Bug Type:
From: dthomas at austincc dot edu
New email:
PHP Version: OS:


 [2014-03-07 00:18 UTC] dthomas at austincc dot edu
From manual page:

The code signature on this function is listed as static; however, the actual implementation is not static.

splEnum::getConstList() vs instanceOf(splEnum)->getConstList()

Personally, I would think it would make more sense to have it be static that way an instance doesn't have to be instantiated to query possible values.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-25 02:18 UTC]
-Package: SPL related +Package: SPL_Types
 [2017-01-10 08:14 UTC]
-Status: Open +Status: Suspended
 [2017-01-10 08:14 UTC]
Suspending this report as the extension have not had a release for almost 5 years.  Please revive this if the extension once again shows life
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 03:01:28 2024 UTC