1--TEST--
2Bug #79653: Unexpected error for ArrayIterator::ksort()
3--FILE--
4<?php
5
6$array = [3 => 1, 2 => 2, 1 => 3];
7$arrIter = new ArrayIterator($array);
8var_dump($arrIter->ksort());
9var_dump($arrIter);
10
11?>
12--EXPECT--
13bool(true)
14object(ArrayIterator)#1 (1) {
15  ["storage":"ArrayIterator":private]=>
16  array(3) {
17    [1]=>
18    int(3)
19    [2]=>
20    int(2)
21    [3]=>
22    int(1)
23  }
24}
25