xref: /PHP-8.0/ext/spl/tests/bug68175.phpt (revision a555cc0b)
1--TEST--
2Bug #68175 (RegexIterator pregFlags are NULL instead of 0)
3--FILE--
4<?php
5$arr = new ArrayIterator(array());
6$regex = new RegexIterator($arr, '/^test/');
7var_dump(
8    $regex->getMode(),
9    $regex->getFlags(),
10    $regex->getPregFlags()
11);
12?>
13--EXPECT--
14int(0)
15int(0)
16int(0)
17