php.net |  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
Votes:1
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:
Package:
Bug Type:
Summary:
From: harroyo at hangar18 dot cc
New email:
PHP Version: OS:

 

 [2012-12-14 19:56 UTC] harroyo at hangar18 dot cc
Description:
------------
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 
methods)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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