rfc:notice-for-non-valid-array-container
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:notice-for-non-valid-array-container [2016/08/24 14:57] – bp1222 | rfc:notice-for-non-valid-array-container [2016/09/01 01:36] – bp1222 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2016-08-16 | * Date: 2016-08-16 | ||
* Author: David Walker (dave@mudsite.com) | * Author: David Walker (dave@mudsite.com) | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 27: | Line 27: | ||
// Output would be: | // Output would be: | ||
// Warning: Variable of type integer does not accept array offsets | // Warning: Variable of type integer does not accept array offsets | ||
+ | |||
+ | // Brought up during vote: | ||
+ | $a = [null]; | ||
+ | $c = null; | ||
+ | var_dump($a[0][0] + $c[0]); | ||
+ | // For the same reason as above, $a[0] is rightfully NULL | ||
+ | // and accessing [0] on null is invalid. | ||
+ | // would be $c[0] for the same reason. | ||
+ | // Output: | ||
+ | // int(0) | ||
</ | </ | ||
Line 47: | Line 57: | ||
Execution Time (DualCore 3ghz; 2g ram) | Execution Time (DualCore 3ghz; 2g ram) | ||
- | * Current Master : ~0.09s (~489k operations) | + | * Current Master : ~0.09s (~489m operations) |
- | * Current Master w/RFC Displaying Warnings: ~33.25s | + | * Current Master w/RFC Displaying Warnings: ~33.25s |
- | * Current Master w/RFC Hiding Warnings: ~0.82s (~4.091m operations) | + | * Current Master w/RFC Hiding Warnings: ~0.82s (~4.091b operations) |
We can see there is a significant increase in operations on huge loads. | We can see there is a significant increase in operations on huge loads. | ||
Line 106: | Line 116: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
Requires 2/3 Vote | Requires 2/3 Vote | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 112: | Line 122: | ||
Vote Start: 2016-08-16 15:36 | Vote Start: 2016-08-16 15:36 | ||
- | Vote End: | + | Vote End: |
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/notice-for-non-valid-array-container.txt · Last modified: 2019/07/10 12:20 by nikic