Re: [RFC] Deprecate Invalid Filter Options

From: Date: Fri, 09 Oct 2026 07:34:57 +0000
Subject: Re: [RFC] Deprecate Invalid Filter Options
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-132846@lists.php.net to get a copy of this message
Hi On 2026-10-07 06:16, Muhammed Arshid KV wrote:
The proposal now focuses on adding Filter\Filter and Filter\Flag enums to the Filter extension. RFC: https://wiki.php.net/rfc/invalid_filter_options
Enums are strongly typed values by themselves. Requiring the use of a / the backing value for some functionality (in this case: Passing multiple options as a bitmask) is an abuse of enums, nullifies the type safety and makes them “fancy constants” in practice. With regarding to the “formal parts” of the RFC, I'm noting that the “Voting Choices” section is unchanged from the template. In particular, the voting widget's title needs to be updated. Best regards Tim Düsterhus

« previous php.internals (#132846) next »