php.net |  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
Votes:1
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
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: dthomas at austincc dot edu
New email:
PHP Version: OS:

 

 [2014-03-07 00:18 UTC] dthomas at austincc dot edu
Description:
------------
---
From manual page: http://www.php.net/splenum.getconstlist
---

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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-25 02:18 UTC] levim@php.net
-Package: SPL related +Package: SPL_Types
 [2017-01-10 08:14 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:14 UTC] kalle@php.net
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: Sat Dec 21 17:01:58 2024 UTC