1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/bug70868.phpt
2019-07-13 14:47:37 +02:00

30 lines
400 B
PHP

--TEST--
Bug #70868, with PCRE JIT
--INI--
pcre.jit=1
--FILE--
<?php
namespace X;
$iterator =
new \RegexIterator(
new \ArrayIterator(['A.phpt', 'B.phpt', 'C.phpt']),
'/\.phpt$/'
)
;
foreach ($iterator as $foo) {
var_dump($foo);
preg_replace('/\.phpt$/', '', '');
}
echo "Done", PHP_EOL;
?>
--EXPECT--
string(6) "A.phpt"
string(6) "B.phpt"
string(6) "C.phpt"
Done