From 0695b9773da22e942c41484bbb3b4f99e9eb6a1d Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 22 Sep 2024 17:03:16 +0200 Subject: [PATCH] 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. --- ext/shmop/tests/gh14537.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/shmop/tests/gh14537.phpt b/ext/shmop/tests/gh14537.phpt index 05af26a70ff..872d81b3cb5 100644 --- a/ext/shmop/tests/gh14537.phpt +++ b/ext/shmop/tests/gh14537.phpt @@ -23,5 +23,5 @@ var_dump($shm_id2); object(Shmop)#1 (0) { } -Warning: shmop_open(): Unable to attach or create shared memory segment "No error" in %s on line %d +Warning: shmop_open(): Unable to attach or create shared memory segment "%s" in %s on line %d bool(false)