Re: BC break in master (7.2) - Distinguish betweenunmatchedsubpatterns and empty matches in preg_*()

From: Date: Wed, 17 May 2017 07:19:31 +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-99067@lists.php.net to get a copy of this message
> > PREG_SKIP_UNMATCHED instead of PREG_UNMATCHED_AS_NULL. > I'm just wondering if having holes in the resulting array is a good idea. It may complicate reading dumps and forces using "foreach" vs "for". I'm also wondering if the original proposal wouldn't be better (having NULL for *all* nonmatches, even trailing ones), if possible. Anyway, I'm fine with either. It's just out of my skills right now so feel free to take over my PR ... sorry. Nicolas

« previous php.internals (#99067) next »