From 3c6ff6e95b170dd6d8f8efd556464ee7b81ccdba Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Tue, 27 Aug 2024 09:54:34 +0200 Subject: [PATCH] export opcache header files --- ext/opcache/config.m4 | 7 +++++++ ext/opcache/config.w32 | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 44e82d07bdfa..6c0d0e994472 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -343,6 +343,13 @@ int main(void) { [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $JIT_CFLAGS],, [yes]) + PHP_INSTALL_HEADERS([ext/opcache], m4_normalize([ + ZendAccelerator.h + zend_accelerator_debug.h + zend_accelerator_hash.h + zend_shared_alloc.h + ])) + PHP_ADD_EXTENSION_DEP(opcache, date) PHP_ADD_EXTENSION_DEP(opcache, pcre) diff --git a/ext/opcache/config.w32 b/ext/opcache/config.w32 index d0af7258ac66..4dd2645fecd2 100644 --- a/ext/opcache/config.w32 +++ b/ext/opcache/config.w32 @@ -18,6 +18,8 @@ if (PHP_OPCACHE != "no") { zend_shared_alloc.c \ shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); + PHP_INSTALL_HEADERS("ext/opcache", "ZendAccelerator.h zend_accelerator_debug.h zend_accelerator_hash.h zend_shared_alloc.h"); + ADD_EXTENSION_DEP('opcache', 'date'); ADD_EXTENSION_DEP('opcache', 'hash'); ADD_EXTENSION_DEP('opcache', 'pcre');