rfc:convert_numeric_keys_in_object_array_casts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:convert_numeric_keys_in_object_array_casts [2017/09/22 13:28] – external edit 127.0.0.1 | rfc:convert_numeric_keys_in_object_array_casts [2017/11/30 14:49] – fixup ajf | ||
---|---|---|---|
Line 24: | Line 24: | ||
Various edge cases in the Zend Engine exist where array HashTables can contain numeric string keys, and object HashTables can contain integer keys. In such cases, these keys are inaccessible from PHP code, because the code handling arrays will never look for numeric string keys in the HashTable (as arrays map those to integer keys), and the code handling objects will never look for integer keys in the HashTable (as objects map those to string keys). | Various edge cases in the Zend Engine exist where array HashTables can contain numeric string keys, and object HashTables can contain integer keys. In such cases, these keys are inaccessible from PHP code, because the code handling arrays will never look for numeric string keys in the HashTable (as arrays map those to integer keys), and the code handling objects will never look for integer keys in the HashTable (as objects map those to string keys). | ||
- | This RFC focuses on a specific edge case, that of object-to-array casts and array-to-object casts. Currently, when using < | + | This RFC focuses on a specific edge case, that of object-to-array casts and array-to-object casts. Currently, when using < |
===== Proposal ===== | ===== Proposal ===== |
rfc/convert_numeric_keys_in_object_array_casts.txt · Last modified: 2017/11/30 14:50 by ajf