summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug71020.phpt
blob: 9f9b8eede336d4ab521651a5d1a23dd11b14c440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #71020 (Use after free in Collator::sortWithSortKeys)
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php

$var_3=new Collator("Whatever");
for($x=0;$x<0xbb;$x++)
	$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9) . strval($x);
$var_3->sortWithSortKeys($myarray);
?>
okey
--EXPECT--
okey