|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60588 MultipleIterator::current return type not documented properly
Submitted: 2011-12-21 18:15 UTC Modified: 2012-12-09 01:21 UTC
From: crmalibu at gmail dot com Assigned: levim (profile)
Status: Closed Package: SPL related
PHP Version: 5.4.0RC3 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: crmalibu at gmail dot com
New email:
PHP Version: OS:


 [2011-12-21 18:15 UTC] crmalibu at gmail dot com
From manual page:

The return type is said to be an array of Iterators. The return type is an array of the current values of each of the Iterators.

also, method signature is wrong. It says return type is void, but return type is array|false
public void MultipleIterator::current ( void )

Test script:
$iter = new MultipleIterator();
$iter->attachIterator(new ArrayIterator(range(5,6)));

Expected result:
something like

array(1) {
  object(ArrayIterator)#3 (1) {
  array(2) {

Actual result:
array(1) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-27 23:18 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: salathe
 [2012-11-16 19:03 UTC]
-Assigned To: salathe +Assigned To: levim
 [2012-11-16 19:03 UTC]
This has been partially updated.  I'll confirm that the remainder is true and 
finish this ticket.

Thank you for your report!
 [2012-11-16 19:03 UTC]
This has partially been updated.  I'll review this report soon and finish the 
changes as needed.

Thank you for your report!
 [2012-12-09 01:10 UTC]
Automatic comment from SVN on behalf of levim
Log: Updated return information to match its current implementation. See bug report #60588.
 [2012-12-09 01:21 UTC]
-Status: Assigned +Status: Closed
 [2012-12-09 01:21 UTC]
This has been fixed. It may take a week to propagate to the documentation mirrors.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 07:03:34 2021 UTC