mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
282355efd5
Closes GH-6774.
13 lines
241 B
PHP
13 lines
241 B
PHP
--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',
|
|
)
|