xref: /PHP-7.3/ext/intl/tests/bug71020.phpt (revision 782352c5)
1--TEST--
2Bug #71020 (Use after free in Collator::sortWithSortKeys)
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7
8$var_3=new Collator("Whatever");
9for($x=0;$x<0xbb;$x++)
10	$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9) . strval($x);
11$var_3->sortWithSortKeys($myarray);
12?>
13okey
14--EXPECT--
15okey
16