xref: /PHP-8.2/ext/spl/tests/bug46088.phpt (revision fa592702)
1--TEST--
2Bug #46088 (RegexIterator::accept - segfault)
3--FILE--
4<?php
5
6$x = new RegexIterator(new ArrayIterator(range(1, 10)), '/\d/');
7var_dump($x->accept());
8
9?>
10--EXPECT--
11bool(false)
12