Re: Pre-RFC: adding a Regex\CompiledRegex class for compiling regular expressions
| From: | Tim Düsterhus | Date: | Sat, 26 Sep 2026 10:54:02 +0000 |
| Subject: | Re: Pre-RFC: adding a Regex\CompiledRegex class for compiling regular expressions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132651@lists.php.net to get a copy of this message | ||
Hi
On 9/26/26 06:03, Osama Aldemeery wrote:
I really like the idea, but I am not quite sure it fully replaces the
PREG_THROW_ON_ERROR flag.
Compilation errors are only half of the error story...the other half
happens at match time, on patterns that compiled just fine.
Using the class as the pattern could just imply the PREG_THROW_ON_ERROR behavior.
Best regards
Tim Düsterhus