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
 [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 13:01:31 2024 UTC