Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON View as Markdown

Declined
Authors
George Peter Banyard girgias@php.net, Kalle Sommer Nielsen kalle@php.net
Date
2020-04-11
Version
0.1.0
Source
wiki.php.net/rfc/rename-double-colon-token

Vote

Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON? closed
Yes
44
No
30
74 voters
ajf No 2020-06-26 14:03
alcaeus Yes 2020-06-27 10:01
alec Yes 2020-06-25 16:11
andi No 2020-06-27 17:48
as Yes 2020-06-27 22:03
asgrim Yes 2020-07-07 22:12
ashnazg Yes 2020-07-01 14:05
beberlei No 2020-06-27 07:58
bmajdak No 2020-06-25 19:53
brzuchal Yes 2020-06-26 14:23
bwoebi No 2020-06-27 10:03
carusogabriel No 2020-06-27 10:32
cschneid Yes 2020-06-25 16:13
danack Yes 2020-06-26 10:58
daverandom Yes 2020-06-29 18:44
davey No 2020-06-26 14:15
derick No 2020-06-29 23:35
dmitry No 2020-06-29 06:03
dragoonis Yes 2020-06-25 16:55
duodraco No 2020-06-25 17:46
ekin Yes 2020-07-08 11:27
galvao Yes 2020-06-25 22:42
geekcom Yes 2020-06-25 15:00
girgias Yes 2020-06-25 14:52
guilhermeblanco Yes 2020-07-03 14:09
heiglandreas No 2020-07-02 09:40
ilutov Yes 2020-06-25 19:43
irker No 2020-06-26 09:55
jasny Yes 2020-07-01 17:17
jbnahan Yes 2020-06-29 06:32
kalle Yes 2020-06-25 14:55
kaplan No 2020-07-05 17:43
kelunik Yes 2020-06-28 06:18
klaussilveira Yes 2020-07-07 16:23
kocsismate Yes 2020-06-25 16:26
krakjoe No 2020-06-26 10:48
laruence Yes 2020-06-29 06:32
levim Yes 2020-06-26 13:58
lstrojny No 2020-07-02 08:38
marandall Yes 2020-06-25 15:05
marcio Yes 2020-06-25 22:11
mariano Yes 2020-07-02 00:36
mbeccati No 2020-06-27 19:32
mcmic No 2020-06-30 07:28
mfonda No 2020-06-27 18:46
nicolasgrekas No 2020-06-27 10:09
nikic Yes 2020-06-27 10:23
ocramius Yes 2020-06-25 14:54
patrickallaert No 2020-07-10 08:22
peehaa Yes 2020-06-30 00:22
pmjones Yes 2020-06-25 16:01
ralphschindler No 2020-06-25 23:05
ramsey Yes 2020-06-25 15:06
rasmus No 2020-07-08 23:05
remi No 2020-06-27 15:15
reywob No 2020-06-29 16:00
royopa Yes 2020-06-26 00:46
salathe No 2020-06-27 18:16
sebastian Yes 2020-06-28 05:05
sergey Yes 2020-07-02 10:23
stas No 2020-06-25 20:33
subjective Yes 2020-07-08 10:09
svpernova09 Yes 2020-06-26 11:49
tandre Yes 2020-06-27 02:41
theodorejb Yes 2020-06-26 15:10
thijs Yes 2020-06-26 09:13
thorstenr Yes 2020-07-10 12:18
till Yes 2020-07-02 08:55
trowski Yes 2020-07-08 16:57
villfa Yes 2020-06-26 18:35
wyrihaximus No 2020-07-08 11:01
yunosh No 2020-07-02 19:32
zeev No 2020-06-27 15:08
zimt No 2020-07-04 22:48

Discussions on the mailing list

[RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON
by G. P. B. · 20 messages
[RFC][VOTE] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON
by G. P. B. · 12 messages

RFC text

Copied from wiki.php.net, last synchronized Oct 13, 2026 11:52 UTC

Introduction

The T_PAAMAYIM_NEKUDOTAYIM token representing the :: characters sequence is often a source of confusion the first time it is encountered.

Historical significance

The T_PAAMAYIM_NEKUDOTAYIM token first appeared in version 0.5 of the Zend Engine, which powered PHP 3, and which was developed in Israel.

This continues to remind us of the major contribution the Israeli community has brought to PHP by laying its modern foundation.

This information is available on the Scope Resolution Operator[1] page.

Newcomer experience

Seeing a really cryptic message during a parse error can lead to frustrations as it's not obvious what is wrong. Although it is true that a simple online search will usually grant an explanation of what the issue is.

However, PHP is for most people their first programming language and therefore may not have the instinct to do an online search and will end up frustrated.

Why fix it now?

We believe that PHP is still an active and growing language and that improving the newcomer experience is something we should strive for.

Proposal

Rename the T_PAAMAYIM_NEKUDOTAYIM token to its alias T_DOUBLE_COLON. And make T_PAAMAYIM_NEKUDOTAYIM an alias to T_DOUBLE_COLON.

Backward Incompatible Changes

None, as T_PAAMAYIM_NEKUDOTAYIM will become an alias to T_DOUBLE_COLON.

Proposed PHP Version

PHP 8.0.

Future Scope

Starting with PHP 8.0, it is possible to deprecate global constants within the engine [2], therefore we might consider deprecating the T_PAAMAYIM_NEKUDOTAYIM constant in a future version.

Vote

Yes/No with 2/3 majority.

Voting started 2020-06-25 and ends 2020-07-09.

Vote: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON? — Yes: 44 · No: 30 (closed)

Patches and Tests

https://gist.github.com/KalleZ/e5be75fa515db625200df955d5d814b8

References

[1] https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php [2] https://github.com/php/php-src/commit/9ec1ee5976f4c0131943cc8863a344caf5492773