Skip to content

Commit 0695b97

Browse files
authored
Make ext/shmop/tests/gh14537.phpt more resilient (GH-15985)
The actual problem is our `shmget()` implementation which does not care to set `errno` appropriately; that should be fixed, although mapping the error conditions to those specified by POSIX might be hard. For now, we only make the test case more resilient by ignoring the exact error; "No error" doesn't make sense anyway.
1 parent 5bfd45c commit 0695b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/shmop/tests/gh14537.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ var_dump($shm_id2);
2323
object(Shmop)#1 (0) {
2424
}
2525

26-
Warning: shmop_open(): Unable to attach or create shared memory segment "No error" in %s on line %d
26+
Warning: shmop_open(): Unable to attach or create shared memory segment "%s" in %s on line %d
2727
bool(false)

0 commit comments

Comments
 (0)