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/11 09:43] – Include scalars and deprecate for removal in 8.0 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.2 | + | * 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:// | + | // |
===== 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) ===== | ||
PHP 7.2 | PHP 7.2 | ||
- | |||
- | ===== Open Issues ===== | ||
- | |||
- | * At the moment '' | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
Line 47: | 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 59: | 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.1476179038.txt.gz · Last modified: 2017/09/22 13:28 (external edit)