1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/spl/tests/spl_pqueue_gc.phpt
Nikita Popov 9173c21a35 Support variable element size in spl heap implementation
This allows us to drop the intermediate allocation for
spl_pqueue_elem.

This fixes GC for SplPriorityQueue, because we can now directly
return a well-formed GC child buffer.
2019-08-23 15:29:53 +02:00

16 lines
235 B
PHP

--TEST--
Bug #78436: Broken GC for SplPriorityQueue
--FILE--
<?php
$pqueue = new SplPriorityQueue();
$pqueue->insert($pqueue, 1);
$pqueue2 = new SplPriorityQueue();
$pqueue2->insert(1, $pqueue);
?>
===DONE===
--EXPECT--
===DONE===