1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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.
This commit is contained in:
Christoph M. Becker
2024-09-22 17:03:16 +02:00
committed by GitHub
parent 5bfd45cd44
commit 0695b9773d

View File

@@ -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)