Skip to content

Commit 776f6ae

Browse files
export opcache shared globals
1 parent 69d9c12 commit 776f6ae

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

ext/opcache/config.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,12 @@ int main(void) {
343343
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $JIT_CFLAGS],,
344344
[yes])
345345

346+
PHP_INSTALL_HEADERS([ext/opcache], m4_normalize([
347+
ZendAccelerator.h
348+
zend_accelerator_hash.h
349+
zend_accelerator_debug.h
350+
]))
351+
346352
PHP_ADD_EXTENSION_DEP(opcache, date)
347353
PHP_ADD_EXTENSION_DEP(opcache, pcre)
348354

ext/opcache/config.w32

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ if (PHP_OPCACHE != "no") {
1818
zend_shared_alloc.c \
1919
shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
2020

21+
22+
PHP_INSTALL_HEADERS("ext/opcache", "ZendAccelerator.h zend_accelerator_hash.h zend_accelerator_debug.h");
23+
2124
ADD_EXTENSION_DEP('opcache', 'date');
2225
ADD_EXTENSION_DEP('opcache', 'hash');
2326
ADD_EXTENSION_DEP('opcache', 'pcre');

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_smm_shared_globals *smm_shared_globals;
56+
ZEND_EXT_API zend_smm_shared_globals *smm_shared_globals;
5757

5858
#ifndef ZEND_WIN32
5959
#ifdef ZTS

0 commit comments

Comments
 (0)