rfc:iterable_to_array-and-iterable_count
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:iterable_to_array-and-iterable_count [2018/06/19 17:49] – created majkl | rfc:iterable_to_array-and-iterable_count [2018/07/03 20:41] – move to Voting majkl | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2018-06-19 | * Date: 2018-06-19 | ||
* Author: Michael Moravec (php.net@majkl578.cz) | * Author: Michael Moravec (php.net@majkl578.cz) | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 39: | Line 39: | ||
* when an iterator is given: | * when an iterator is given: | ||
* when //$use_keys = true//: iterator is converted to an array, preserving the keys (same behavior as iterator_to_array()) | * when //$use_keys = true//: iterator is converted to an array, preserving the keys (same behavior as iterator_to_array()) | ||
- | * when //$use_keys = false//: iterator is converted to an array as a list, ignoring the keys | + | * when //$use_keys = false//: iterator is converted to an array as a list, ignoring the keys (same behavior as iterator_to_array()) |
In order to stay consistent with iterator_to_array(), | In order to stay consistent with iterator_to_array(), | ||
Line 86: | Line 86: | ||
In case these functions gain a popularity, they could be optimized directly by VM, similar to ZEND_COUNT. | In case these functions gain a popularity, they could be optimized directly by VM, similar to ZEND_COUNT. | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | Not a language change so simple yes/no vote with 50%+1 majority is required. | + | This is not a language change so simple yes/no vote with 50%+1 majority is required. |
+ | |||
+ | Voting starts on 2018-07-03 20:30 UTC and closes on 2018-07-17 12:00 UTC. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | . | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
GitHub PR: https:// | GitHub PR: https:// |
rfc/iterable_to_array-and-iterable_count.txt · Last modified: 2018/07/17 12:34 by majkl