Skip to content

Commit 8272575

Browse files
committed
ext/sysvshm: shm_detach() always returns true
1 parent 063d795 commit 8272575

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ PHP 8.5 UPGRADE NOTES
384384
. socket_set_option with multicast context throws a ValueError
385385
when the created socket is not of AF_INET/AF_INET6 family.
386386

387+
- SysVSHM:
388+
. shm_detach() now has a return type of true
389+
387390
- Tidy:
388391
. tidy::__construct/parseFile/parseString now throws a ValueError
389392
if the configuration contains an invalid or set a read-only

ext/sysvshm/sysvshm.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class SysvSharedMemory
1212

1313
function shm_attach(int $key, ?int $size = null, int $permissions = 0666): SysvSharedMemory|false {}
1414

15-
function shm_detach(SysvSharedMemory $shm): bool {}
15+
function shm_detach(SysvSharedMemory $shm): true {}
1616

1717
function shm_has_var(SysvSharedMemory $shm, int $key): bool {}
1818

0 commit comments

Comments
 (0)