[php-src] PR #22912: Prevents tests from leaking System V IPC objects
| From: | NickSdot | Date: | Tue, 28 Jul 2026 20:43:16 +0000 |
| Subject: | [php-src] PR #22912: Prevents tests from leaking System V IPC objects | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37325@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22912
Author: NickSdot
The two tests leave System V IPC objects behind. Repeated test-suite runs can exhaust platform IPC
limits and cause unrelated SysV tests to fail. Happened on macOS where the message queue limit is
relatively low.
**1)
arginfo_zpp_mismatch.phpt**
Calls every internal function with 0..8 null arguments. Means, 4 System V IPC functions
create 3 queues, 3 shared-memory segments, and 4 semaphore sets per run -- these survive the process
that created them.
The 4 affected functions are now handled early with a helper. The argument counts stay the same, but
sem_get() and shm_attach() use 0600 for their permission
argument, because null becomes 0000 which can create non-removable
objects.
**2) gh16592.phpt**
created a message queue without removing it; now uses a private queue and cleans up after it.