mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Export opcache shared globals (#15543)
This commit is contained in:
committed by
GitHub
parent
a3b7cc2217
commit
b9b317afd4
@@ -53,7 +53,7 @@
|
||||
static const zend_shared_memory_handlers *g_shared_alloc_handler = NULL;
|
||||
static const char *g_shared_model;
|
||||
/* pointer to globals allocated in SHM and shared across processes */
|
||||
zend_smm_shared_globals *smm_shared_globals;
|
||||
ZEND_EXT_API zend_smm_shared_globals *smm_shared_globals;
|
||||
|
||||
#ifndef ZEND_WIN32
|
||||
#ifdef ZTS
|
||||
|
||||
@@ -119,7 +119,7 @@ typedef struct _zend_smm_shared_globals {
|
||||
size_t reserved_size;
|
||||
} zend_smm_shared_globals;
|
||||
|
||||
extern zend_smm_shared_globals *smm_shared_globals;
|
||||
ZEND_EXT_API extern zend_smm_shared_globals *smm_shared_globals;
|
||||
|
||||
#define ZSMMG(element) (smm_shared_globals->element)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user