Skip to content

Commit ab7526b

Browse files
committed
Fix GH-16592 test leaking a message queue
1 parent 2d0c76b commit ab7526b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ext/sysvmsg/tests/gh16592.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ class Test {
88
function __serialize() {}
99
}
1010

11-
$q = msg_get_queue(1);
11+
// use a private queue, so we only remove our own.
12+
$q = msg_get_queue(0, 0600);
1213
try {
1314
msg_send($q, 1, new Test, true);
1415
} catch (\TypeError $e) {
1516
echo $e->getMessage();
1617
}
18+
msg_remove_queue($q);
1719
?>
1820
--EXPECT--
1921
Test::__serialize() must return an array

0 commit comments

Comments
 (0)