# [Vote] Readonly property hooks

- Thread: https://externals.io/message/128147
- Original archive: https://news-web.php.net/php.internals/128147
- Started by Larry Garfield on 2025-07-20T19:10:19+00:00
- Messages: 2
- RFC: Readonly property hooks (Declined) — https://externals.io/rfc/readonly_hooks.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #128147 — Larry Garfield — 2025-07-20T19:10:19+00:00

URL: https://externals.io/message/128147#128147

I have opened the vote for property hooks on readonly properties.  The vote will run for two weeks, until 3 August.

As noted, there are two independent votes, one for allowing a "get" hook on readonly properties, and one for allowing a "set" hook on readonly properties.  Either one can pass or fail independently.

https://wiki.php.net/rfc/readonly_hooks

-- 
  Larry Garfield
  larry@garfieldtech.com

---

## #128386 — Larry Garfield — 2025-08-04T15:37:02+00:00

URL: https://externals.io/message/128147#128386 · In reply to: #128147

> I have opened the vote for property hooks on readonly properties.  The 
> vote will run for two weeks, until 3 August.
>
> As noted, there are two independent votes, one for allowing a "get" 
> hook on readonly properties, and one for allowing a "set" hook on 
> readonly properties.  Either one can pass or fail independently.
>
> https://wiki.php.net/rfc/readonly_hooks
>
> -- 
>   Larry Garfield
>   larry@garfieldtech.com

The vote has now ended.

readonly get hooks had 5 yes / 21 no, so did not pass.

readonly set hooks had 13 yes / 9 no, so did not pass.

Thank you everyone for your participation.

--Larry Garfield
