xref: /php-src/ext/intl/tests/bug71020.phpt (revision 74859783)
1--TEST--
2Bug #71020 (Use after free in Collator::sortWithSortKeys)
3--EXTENSIONS--
4intl
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