From: Christoph M. Becker Date: Sat, 23 May 2015 18:34:06 +0000 (+0200) Subject: added test to clearly show distinction between unset (aka unmatched) subpattern and... X-Git-Tag: php-7.2.0alpha1~625^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ca664abbf839708950d57c962438d8878459ec5;p=php added test to clearly show distinction between unset (aka unmatched) subpattern and an empty match --- diff --git a/ext/pcre/tests/bug61780.phpt b/ext/pcre/tests/bug61780.phpt new file mode 100644 index 0000000000..25b1e13126 --- /dev/null +++ b/ext/pcre/tests/bug61780.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #61780 (Inconsistent PCRE captures in match results): basics +--FILE-- + +--EXPECT-- +array(4) { + [0]=> + string(3) "123" + [1]=> + NULL + [2]=> + string(0) "" + [3]=> + string(3) "123" +}