rfc:counting_non_countables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:counting_non_countables [2016/10/17 20:47] – Remove the outstanding question about count(null) duncan3dc | rfc:counting_non_countables [2018/03/01 23:26] (current) – RFC was implemented in PHP 7.2 carusogabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Counting of non-countable objects ====== | ====== PHP RFC: Counting of non-countable objects ====== | ||
- | * Version: 0.3 | + | * Version: 0.4 |
* Date: 2016-10-04 | * Date: 2016-10-04 | ||
- | * Author: Craig Duncan <git@duncanc.co.uk> | + | * Author: Craig Duncan <php@duncanc.co.uk> |
* Proposed version: PHP 7.2 | * Proposed version: PHP 7.2 | ||
- | * Status: | + | * Status: |
* ML thread: http:// | * ML thread: http:// | ||
Line 19: | Line 19: | ||
foreach ($iterable as $value) { | foreach ($iterable as $value) { | ||
- | handle_value($val); | + | handle_value($value); |
} | } | ||
} | } | ||
Line 27: | Line 27: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC proposes | + | This RFC proposes |
//Note that the sizeof alias is also affected.// http:// | //Note that the sizeof alias is also affected.// http:// | ||
Line 33: | Line 33: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | None, deprecating features does not break BC. | + | The call to '' |
+ | |||
+ | Environments that display warnings or convert them to more severe errors/ | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 43: | Line 45: | ||
Simple Yes/No vote that doesn' | Simple Yes/No vote that doesn' | ||
- | ===== Patches and Tests ===== | + | ===== Vote ===== |
- | Patch to handle the change: | + | <doodle title=" |
- | https:// | + | * Yes |
+ | * No | ||
+ | </doodle> | ||
- | Example tests: | + | ===== Implementation ===== |
- | https:// | + | |
+ | Pull request to handle the change: | ||
+ | https:// | ||
=====References ===== | =====References ===== | ||
Line 55: | Line 61: | ||
Initial discussion that led to this RFC's creation: | Initial discussion that led to this RFC's creation: | ||
https:// | https:// | ||
+ | |||
+ | Discussion thread: | ||
+ | http:// | ||
+ | |||
+ | Voting thread: | ||
+ | http:// | ||
rfc/counting_non_countables.1476737238.txt.gz · Last modified: 2017/09/22 13:28 (external edit)