|  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: 2021-08-23 16:15 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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 [2021-08-23 16:15 UTC]
> I'll implement this in 2.0.1 beta.

Apparently, that didn't happen. :)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 22:01:28 2024 UTC