|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63771 Implement SPL interfaces on Bitsets
Submitted: 2012-12-14 19:56 UTC Modified: 2017-10-24 03:26 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: harroyo at hangar18 dot cc Assigned: willfitch (profile)
Status: Assigned Package: Bitset (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:
Bug Type:
From: harroyo at hangar18 dot cc
New email:
PHP Version: OS:


 [2012-12-14 19:56 UTC] harroyo at hangar18 dot cc
It would be great if Bitset objects implement some common SPL interfaces.

Countable: returning size() or cardinality() for count() ?
ArrayAccess: so get()/set()/unset() can be accessed via the $bitset[index] / 
isset($bitset[index]) / unset($bitset[index]) syntax
IteratorAggregate?: so a ¿ArrayIterator? is returned (and it uses the ArrayAccess 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-14 20:00 UTC]
Thanks for your feedback.  I'll implement this in 2.0.1 beta.
 [2012-12-14 20:00 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: wfitch
 [2012-12-14 20:33 UTC]
-Assigned To: wfitch +Assigned To: willfitch
 [2012-12-18 21:19 UTC]
-Status: Assigned +Status: Verified
 [2017-10-24 03:26 UTC]
-Status: Verified +Status: Assigned
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 00:01:23 2021 UTC