xref: /PHP-8.4/ext/pcre/tests/gh15205_1.phpt (revision ded8fb79)
1--TEST--
2GH-15205: UAF when destroying RegexIterator after pcre request shutdown
3--CREDITS--
4YuanchengJiang
5--FILE--
6<?php
7$array = new ArrayIterator(array('a', array('b', 'c')));
8$regex = [new RegexIterator($array, '/Array/')];
9echo "Done\n";
10?>
11--EXPECT--
12Done
13