rfc:change-terminology-to-allowlist-and-blocklist

This is an old revision of the document!


PHP RFC: Change terminology to AllowList and BlockList

Change uses of “whitelist” and “blacklist” with better self-descriptive terminology.

Introduction

The cultural significance of blacklists is based on racial discrimination. There are no reasons to use these.

Proposal

The proposal is to replace all occurrences of “whitelist” and “blacklist” to their respective alternatives “allowlist” and “blocklist”.

Backward Incompatible Changes

Most of the changes are internal only with two exceptions for which this patch requires RFC:

  1. `opcache.blacklist_filename` INI directive
  2. `opcache_get_configuration()[“blacklist”]` key in returned array value

Proposed PHP Version(s)

Next PHP 8.0.

RFC Impact

To SAPIs

None.

To Existing Extensions

Only in Opcache.

To Opcache

This proposal modifies Opcache structure and function names by replacing “blacklist” with “blocklist”.

php.ini Defaults

  • php.ini-development changed name of “opcache.blacklist_filename” into “opcache.blocklist_filename”
  • php.ini-production changed name of “opcache.blacklist_filename” into “opcache.blocklist_filename”

Proposed Voting Choices

Accept changing terminology in PHP 8.0? Yes/No

Implementation

References

rfc/change-terminology-to-allowlist-and-blocklist.1591694897.txt.gz · Last modified: 2020/06/09 09:28 by brzuchal