1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--TEST-- Bug #70573 (Cloning SplPriorityQueue leads to memory leaks) --FILE-- <?php $q1 = new SplPriorityQueue(); $a = 1; $q1->insert([$a], 1); $q1->insert([$a], 2); $q2 = clone $q1; echo "ok\n"; ?> --EXPECT-- ok