bug70868.phpt 400 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Bug #70868, with PCRE JIT
  3. --INI--
  4. pcre.jit=1
  5. --FILE--
  6. <?php
  7. namespace X;
  8. $iterator =
  9. new \RegexIterator(
  10. new \ArrayIterator(['A.phpt', 'B.phpt', 'C.phpt']),
  11. '/\.phpt$/'
  12. )
  13. ;
  14. foreach ($iterator as $foo) {
  15. var_dump($foo);
  16. preg_replace('/\.phpt$/', '', '');
  17. }
  18. echo "Done", PHP_EOL;
  19. ?>
  20. --EXPECT--
  21. string(6) "A.phpt"
  22. string(6) "B.phpt"
  23. string(6) "C.phpt"
  24. Done