mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
16 lines
383 B
PHP
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
|