This is an old revision of the document!
PHP RFC: Objects as hash keys
- Version: 0.9
- Date: 2014-10-21
- Author: Stas Malyshev (firstname.lastname@example.org)
- Status: Draft
- First Published at: http://wiki.php.net/rfc/objkey
Allow objects to serve as hash keys (to be filled in)
Backward Incompatible Changes
Should not break anything as we don't allow this now.
Proposed PHP Version(s)
Targeted for PHP 7
No impact on SAPIs
To Existing Extensions
If somebody implements something like ArrayAccess they may want to update it to accommodate objects.
Since objects are run-time, should not have any effects on opcache.
Proposed Voting Choices
New magic method requires 2/3 majority.
Patches and Tests