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: 2021-08-23 16:15 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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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
 [2021-08-23 16:15 UTC] cmb@php.net
> 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: Sun Nov 10 13:01:29 2024 UTC