php-8.0.30-src/ext/spl/tests/SplHeap_with_by_reference_c...

17 lines
259 B
PHP

--TEST--
SplHeap using a compare function returning by-reference
--FILE--
<?php
class Heap extends SplMinHeap {
public function &compare($a, $b) {
return $a;
}
}
$h = new Heap;
$h->insert(0);
$h->insert(0);
?>
===DONE===
--EXPECT--
===DONE===