diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-01-21 17:49:38 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-01-21 17:49:38 +0000 |
commit | 50016d9dec9be2a11bbdf195924a6becfb27adbf (patch) | |
tree | ace84671409618cb4d3d9c40218ded5ae97ba50b /ext/pcre/pcrelib/testdata/testinput2 | |
parent | 6dda7add548cbd61e93784a6916382f7a7e8879d (diff) | |
download | php-git-50016d9dec9be2a11bbdf195924a6becfb27adbf.tar.gz |
Upgraded bundled PCRE to version 8.01
Diffstat (limited to 'ext/pcre/pcrelib/testdata/testinput2')
-rw-r--r-- | ext/pcre/pcrelib/testdata/testinput2 | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/ext/pcre/pcrelib/testdata/testinput2 b/ext/pcre/pcrelib/testdata/testinput2 index 3319bb7327..1c1a72dd57 100644 --- a/ext/pcre/pcrelib/testdata/testinput2 +++ b/ext/pcre/pcrelib/testdata/testinput2 @@ -344,10 +344,25 @@ *** Failers a -/This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/I +/This one is here because Perl behaves differently; see also the following/I /^(a\1?){4}$/I + aaaa aaaaaa + +/Perl does not fail these two for the final subjects. Neither did PCRE until/ +/release 8.01. The problem is in backtracking into a subpattern that contains/ +/a recursive reference to itself. PCRE has now made these into atomic patterns./ + +/^(xa|=?\1a){2}$/ + xa=xaa + ** Failers + xa=xaaa + +/^(xa|=?\1a)+$/ + xa=xaa + ** Failers + xa=xaaa /These are syntax tests from Perl 5.005/I @@ -3169,4 +3184,24 @@ a random value. /Ix /(\3)(\1)(a)/SI cat +/i(?(DEFINE)(?<s>a))/SI + i + +/()i(?(1)a)/SI + ia + +/(?i)a(?-i)b|c/BZ + XabX + XAbX + CcC + ** Failers + XABX + +/(?i)a(?s)b|c/BZ + +/(?i)a(?s-i)b|c/BZ + +/^(ab(c\1)d|x){2}$/BZ + xabcxd + /-- End of testinput2 --/ |