mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Disable opcache if no SHM backend is available
Currently, configure fails when no SHM backend is available. Additionally, even after bypassing the configure check, opcache emits a fatal error if no SHM backend is available. Make the configure check non-fatal (a warning is printed). At runtime, disable opcache if no backend is available, in the same way we disable opcache by default on CLI. Closes GH-19350
This commit is contained in:
parent
fe88711b14
commit
e4078a6a70
4 changed files with 12 additions and 2 deletions
|
@ -72,6 +72,7 @@
|
|||
#define SUCCESSFULLY_REATTACHED 4
|
||||
#define ALLOC_FAIL_MAPPING 8
|
||||
#define ALLOC_FALLBACK 9
|
||||
#define NO_SHM_BACKEND 10
|
||||
|
||||
typedef struct _zend_shared_segment {
|
||||
size_t size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue