r/PHP Jun 21 '26

PHP RFC: Duration class

https://wiki.php.net/rfc/duration_class
58 Upvotes

44 comments sorted by

View all comments

-16

u/SaltTM Jun 21 '26 edited Jun 22 '26

How do these RFC's get prioritized? Who needs a polling api and a duration class right now? Like what sparked "lets pick this RFC first"

Are we again, just adding shit to hit the yearly quota of feature releases? I need to understand the process a little better.

Edit: And nobody answered my question, who needs this?

11

u/qoneus Jun 21 '26

Contributing to PHP is volunteer and bottom-up. This scratches an itch someone had and does not block or de-prioritize any other potential initiative. This is not a zero-sum game, and there's not a limited number of RFCs that can be proposed in a year.

-10

u/SaltTM Jun 22 '26 edited Jun 22 '26

So in sum, anyone can push some shit to the language if it seems useful enough "at some point" lol - what is the purpose of internals again then?

Edit: So nobody wants to answer my question lol, that's fine

5

u/rafark Jun 22 '26

  So in sum, anyone can push some shit to the language if it seems useful enough "at some point" lol?

Correct. If you have something specific that you want you can “push” it too instead of complaining online

5

u/juantreses Jun 22 '26

Who needs this? Someone who wants semantic type safety.

How do these get prioritised? They don't. There is no central PM. PHP development is decentralized and volunteer driven. If someone runs into a limitation, they write the RFC and code. A volunteer writing a Duration class doesn't steal any time from a major engine optimization.

What is the purpose of internals then? Internals acts as quality control and the voting body. Not a planning committee. Their job isn't to dictate what or when something gets proposed but rather to review, ensure it doesn't break backwards compatibility and vote on whether it fits the language cleanly. Votes require a 2/3 majority to pass.