Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/spl/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/spl/tests/heap_top_variation_002.phpt |
--TEST-- SPL: SplHeap top, corrupted heap --CREDITS-- Mark Schaschke (mark@fractalturtle.com) TestFest London May 2009 --FILE-- <?php // override heap to force corruption by throwing exception in compare class SplMinHeap2 extends SplMinHeap { public function compare($a, $b) { throw new Exception('Corrupt heap'); } } $h = new SplMinHeap2(); // insert 2 elements to hit our overridden compare $h->insert(4); try { $h->insert(5); } catch (Exception $e) {} // call top, should fail with corrupted heap try { $h->top(); } catch (Exception $e) { echo $e->getMessage(); } ?> --EXPECTF-- Heap is corrupted, heap properties are no longer ensured.
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare