php-src/ext/spl/tests/bug46088.phpt
2008-09-22 13:09:50 +00:00

12 lines
187 B
PHP

--TEST--
Bug #46088 (RegexIterator::accept - segfault)
--FILE--
<?php
$x = new RegexIterator(new ArrayIterator(range(1, 10)), '/\d/');
var_dump($x->accept());
?>
--EXPECT--
bool(false)