summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug70573.phpt
blob: b93e48876d758525c499e0088bfcb30bdeb7ba66 (plain)
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