/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug67539.phpt
--TEST-- Bug #67539 (ArrayIterator use-after-free due to object change during sorting) --FILE-- <?php $it = new ArrayIterator(array_fill(0,2,'X'), 1 ); function badsort($a, $b) { try { $GLOBALS['it']->unserialize($GLOBALS['it']->serialize()); } catch (Error $e) { echo $e->getMessage(), "\n"; } return 0; } $it->uksort('badsort'); ?> --EXPECT-- Modification of ArrayObject during sorting is prohibited
Copyright ©2k19 -
Hexid
|
Tex7ure