Skip to content

Commit ffc355c

Browse files
committedSep 22, 2024··
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Prevent closing of unrelated handles
2 parents 94c2ae6 + f303840 commit ffc355c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ PHP NEWS
2424
. Fixed bugs GH-15908 and GH-15026 (leak / assertion failure in streams.c).
2525
(nielsdos)
2626

27+
- TSRM:
28+
. Prevent closing of unrelated handles. (cmb)
29+
2730
12 Sep 2024, PHP 8.3.12
2831

2932
- Core:

‎TSRM/tsrm_win32.c

+1
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ TSRM_API int shmget(key_t key, size_t size, int flags)
707707
if (NULL != shm->descriptor && (shm->descriptor->shm_perm.key != key || size > shm->descriptor->shm_segsz)) {
708708
if (NULL != shm->segment) {
709709
CloseHandle(shm->segment);
710+
shm->segment = INVALID_HANDLE_VALUE;
710711
}
711712
UnmapViewOfFile(shm->descriptor);
712713
shm->descriptor = NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.