rfc:counting_non_countables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:counting_non_countables [2016/10/11 09:43] – Include scalars and deprecate for removal in 8.0 duncan3dcrfc:counting_non_countables [2016/10/17 20:47] – Remove the outstanding question about count(null) duncan3dc
Line 1: Line 1:
 ====== PHP RFC: Counting of non-countable objects ====== ====== PHP RFC: Counting of non-countable objects ======
-  * Version: 0.2+  * Version: 0.3
   * Date: 2016-10-04   * Date: 2016-10-04
   * Author: Craig Duncan <git@duncanc.co.uk>   * Author: Craig Duncan <git@duncanc.co.uk>
Line 27: Line 27:
 ===== Proposal ===== ===== Proposal =====
  
-This RFC proposes deprecating count with a parameter that is a scalar or an object that doesn't implement Countable.+This RFC proposes deprecating count with a parameter that is a scalar, null, or an object that doesn't implement Countable.
  
-_Note that the sizeof alias is also affected.http://php.net/manual/en/function.sizeof.php+//Note that the sizeof alias is also affected.// http://php.net/manual/en/function.sizeof.php
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 38: Line 38:
  
 PHP 7.2 PHP 7.2
- 
-===== Open Issues ===== 
- 
-  * At the moment ''count(null)'' returns ''0'', should this be deprecated too 
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
rfc/counting_non_countables.txt · Last modified: 2018/03/01 23:26 by carusogabriel