rfc:hashkey

This is an old revision of the document!


PHP RFC: __hashKey magic method

Introduction

Often discussed is the problem that we cannot use objects as array keys.

Proposal

A new magic __hashKey method, expected to return a scalar suitable for use as an HashTable key.

Proposed PHP Version(s)

7

Open Issues

Make sure there are no open issues when the vote starts!

Proposed Voting Choices

The language is changed, so requires a 2/3 majority to pass.

A straight yes/no vote should be conducted.

Patches and Tests

References

Links to external references, discussions or RFCs

Rejected Features

Keep this updated with features that were discussed on the mail lists.

rfc/hashkey.1413982558.txt.gz · Last modified: 2017/09/22 13:28 (external edit)