summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug80866.phpt
blob: 1de5390cb3233ca75c3a0c42916cab5315056610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #80866 preg_split ignores limit flag when pattern with \K has 0-width fullstring match
--FILE--
<?php
var_export(preg_split('~.{3}\K~', 'abcdefghijklm', 3));
?>
--EXPECT--
array (
  0 => 'abc',
  1 => 'def',
  2 => 'ghijklm',
)