Skip to content

Commit 561ab3a

Browse files
committed
Revert "Export opcache shared globals (php#15543)"
This reverts commit b9b317a. We don't need it and the use of ZEND_EXT_API would require us to include ZendAccelerator.h.
1 parent 9327bec commit 561ab3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
static const zend_shared_memory_handlers *g_shared_alloc_handler = NULL;
5454
static const char *g_shared_model;
5555
/* pointer to globals allocated in SHM and shared across processes */
56-
ZEND_EXT_API zend_smm_shared_globals *smm_shared_globals;
56+
zend_smm_shared_globals *smm_shared_globals;
5757

5858
#ifndef ZEND_WIN32
5959
#ifdef ZTS

ext/opcache/zend_shared_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef struct _zend_smm_shared_globals {
119119
size_t reserved_size;
120120
} zend_smm_shared_globals;
121121

122-
ZEND_EXT_API extern zend_smm_shared_globals *smm_shared_globals;
122+
extern zend_smm_shared_globals *smm_shared_globals;
123123

124124
#define ZSMMG(element) (smm_shared_globals->element)
125125

0 commit comments

Comments
 (0)