1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/intl/tests/bug71020.phpt

16 lines
383 B
PHP

--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