Bug #67064 [Com]: Countable interface prevents using 2nd parameter ($mode) of count() function

From: Date: Fri, 06 Feb 2015 17:49:06 +0000
Subject: Bug #67064 [Com]: Countable interface prevents using 2nd parameter ($mode) of count() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190493@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67064&edit=1

 ID:                 67064
 Comment by:         boen dot robot at gmail dot com
 Reported by:        trainmaster at gmx dot net
 Summary:            Countable interface prevents using 2nd parameter
                     ($mode) of count() function
 Status:             Closed
 Type:               Bug
 Package:            SPL related
 Operating System:   Windows 7 64 bit
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Will this change make it into PHP 7 at least?

(Because it's not currently, and the BC concerns don't exactly apply there...)


Previous Comments:
------------------------------------------------------------------------
[2014-10-26 01:28:08] bjori@php.net

Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=335135
Log: Revert r333536 Fixed version number in changelog
Revert r333311 Updated Countable::count([$mode]) to reflect newest changes

The fix for bug #67064 was reverted, so undocumenting the changes

------------------------------------------------------------------------
[2014-10-07 23:26:45] stas@php.net

Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=1a4a9eede59b853f11e8e8b965e5f715f53da8f7
Log: Fix bug #67064 in a BC safe way You can use an optional parameter now when implementing the
Countable interface to get the $mode passed to count().

------------------------------------------------------------------------
[2014-10-07 23:15:38] stas@php.net

Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=1a4a9eede59b853f11e8e8b965e5f715f53da8f7
Log: Fix bug #67064 in a BC safe way You can use an optional parameter now when implementing the
Countable interface to get the $mode passed to count().

------------------------------------------------------------------------
[2014-08-14 00:52:54] tyrael@php.net

Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=354ee12b73dbe20d0c4fa7883eb34714f89109df
Log: Revert "Fix bug #67064 in a BC safe way"

------------------------------------------------------------------------
[2014-08-04 09:59:48] dmitry@php.net

Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=354ee12b73dbe20d0c4fa7883eb34714f89109df
Log: Revert "Fix bug #67064 in a BC safe way"

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=67064


--
Edit this bug report at https://bugs.php.net/bug.php?id=67064&edit=1


Thread (11 messages)

« previous php.bugs (#190493) next »