Re: Empty subject in match and switch constructions

From: Date: Wed, 05 Feb 2025 22:57:50 +0000
Subject: Re: Empty subject in match and switch constructions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-126300@lists.php.net to get a copy of this message
On 2025-02-05 09:49, Larry Garfield wrote:
Feature-wise, I have to say I'd keep it strict-always, as both our PRs implement it. Yes, that means preg_match() wouldn't be able to slot in transparently. I'm frankly OK with that; hopefully pattern matching can be extended to a better regex syntax anyway in the future. Besides, the ugly need go no further than a (bool)preg_match(...) cast - which is just as strict and is more explicit about what is actually being compared.


« previous php.internals (#126300) next »