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 revision | ||
rfc:notice-for-non-valid-array-container [2016/08/24 15:48] – bp1222 | rfc:notice-for-non-valid-array-container [2019/07/10 12:20] (current) – Implemented nikic | ||
---|---|---|---|
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 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 |
rfc/notice-for-non-valid-array-container.txt · Last modified: 2019/07/10 12:20 by nikic