Lines Matching refs:heap
2 SPL: SplHeap - heap corruption via compare exception (with top element deletion)
37 $heap = new myHeap();
38 $heap->insert(1);
39 $heap->insert(2);
40 $heap->insert(3);
41 $heap->insert(4);
43 $heap->allow_compare = false;
45 var_dump($heap->isCorrupted());
48 $heap->extract();
55 $heap->top();
61 var_dump($heap->isCorrupted());
62 $heap->recoverFromCorruption();
63 var_dump($heap->isCorrupted());
68 Corruption Exception: Heap is corrupted, heap properties are no longer ensured.