Re: BC break in master (7.2) - Distinguish betweenunmatchedsubpatterns and empty matches in preg_*()
| From: | Sara Golemon | Date: | Tue, 16 May 2017 23:54:40 +0000 |
| Subject: | Re: BC break in master (7.2) - Distinguish betweenunmatchedsubpatterns and empty matches in preg_*() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99065@lists.php.net to get a copy of this message | ||
On Tue, May 16, 2017 at 5:21 PM, Christoph M. Becker <cmbecker69@gmx.de> wrote:
> Personally, I rarely use array_key_exists(), but others may prefer it,
> and it appears to be cleaner not to set unmatched subpatterns at all.
> And if we're going to add a flag anyway, it appears to be reasonable to
> change the behavior right away, i.e. to introduce something like
> PREG_SKIP_UNMATCHED instead of PREG_UNMATCHED_AS_NULL.
>
ftr; I'm fine either way. My only beef is that default behavior
doesn't unnecessarily break BC. :D
-Sara