mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
I guess we only need this on HEAD.
This commit is contained in:
parent
3d7abc2931
commit
4033bfbda0
@ -1,20 +0,0 @@
|
||||
- Allow NULL for $matches argument (helps when using preg_match only for
|
||||
match condition) - might not be possible
|
||||
|
||||
- http://bugs.php.net/bug.php?id=36975
|
||||
|
||||
- I'd love to see a pattern modifer which says "don't fill $matches except
|
||||
for the overall match and any specific named captures". This would allow
|
||||
(?: ...) to be avoided in a lot of cases.
|
||||
|
||||
This could make for non-trivial speed enhancements with regexes that have
|
||||
a lot of parens when working on long strings, since you'd not have to
|
||||
copy them multiple times to the $matches array.
|
||||
|
||||
Also, it makes $matches much cleaner after a match where you've named the
|
||||
captures you're interested in.
|
||||
|
||||
(Note that this would not involve the use of PCRE_NO_AUTO_CAPTURE, as
|
||||
that would change the semantics of backreferences)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user