xref: /PHP-7.0/ext/spl/tests/bug70573.phpt (revision 415000ed)
1--TEST--
2Bug #70573 (Cloning SplPriorityQueue leads to memory leaks)
3--FILE--
4<?php
5$q1 = new SplPriorityQueue();
6$a = 1;
7$q1->insert([$a], 1);
8$q1->insert([$a], 2);
9$q2 = clone $q1;
10echo "ok\n";
11?>
12--EXPECT--
13ok
14
15
16