# [RFC][Discussion] Arbitrary static variable initializers

- Thread: https://externals.io/message/118976
- Original archive: https://news-web.php.net/php.internals/118976
- Started by Ilija Tovilo on 2022-11-06T19:48:09+00:00
- Messages: 2
- RFC: Arbitrary static variable initializers (Implemented (PHP 8.3)) — https://externals.io/rfc/arbitrary_static_variable_initializers.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

---

## #118976 — Ilija Tovilo — 2022-11-06T19:48:09+00:00

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

Hi everyone

I'd like to propose my next RFC. It lifts the restriction of only
using constant expressions in static variable initializers. Let me
know if you have any thoughts or concerns.

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

Ilija

---

## #118979 — Larry Garfield — 2022-11-07T17:01:50+00:00

URL: https://externals.io/message/118976#118979 · In reply to: #118976

> Hi everyone
>
> I'd like to propose my next RFC. It lifts the restriction of only
> using constant expressions in static variable initializers. Let me
> know if you have any thoughts or concerns.
>
> https://wiki.php.net/rfc/arbitrary_static_variable_initializers
>
> Ilija

This has always kind of bugged me.  +1 from my end.

--Larry Garfield
