]> granicus.if.org Git - php/commit
Fail in `./configure` when no opcache shm backends exist
authorTyson Andre <tysonandre775@hotmail.com>
Fri, 22 May 2020 21:36:32 +0000 (17:36 -0400)
committerTyson Andre <tysonandre775@hotmail.com>
Sun, 24 May 2020 21:49:52 +0000 (17:49 -0400)
commitf3efb9e3fb30fa307e0913e888fb2859cec8209a
treefc59f7e8e9b7de2a1bcdd2922c641ed57c977172
parentcebe750f460b8060ab21ae1e21980098f3f5b8e2
Fail in `./configure` when no opcache shm backends exist

This can be seen when the `./configure` step fails to detect `HAVE_SHM_*`,
e.g. due to missing a necessary dependency to compile the test scripts.
(Run `./configure`, run `yum install libtool-ltdl-devel` for missing dependencies,
then run `make`, and php can end up built with 0 shared memory opcache caches)

Give a clearer error message than `unknown`
Searching for `opcache "Fatal Error Unable to allocate shared memory segment of"
"unknown: No such file or directory"` reveals issues such as
https://github.com/termux/termux-packages/issues/2234

Closes GH-5615
ext/opcache/config.m4