xref: /PHP-8.1/ext/spl/tests/bug70573.phpt (revision d679f022)
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