Sync missing hash and pcre dependencies for opcache on Windows (#14682)

- ext/hash is required only on Windows
- ext/pcre is required
This commit is contained in:
Peter Kokot 2024-06-27 18:23:01 +02:00 committed by GitHub
parent 54e5e7b507
commit 3d6bd16239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -48,7 +48,10 @@
#include "zend_file_cache.h" #include "zend_file_cache.h"
#include "ext/pcre/php_pcre.h" #include "ext/pcre/php_pcre.h"
#include "ext/standard/md5.h" #include "ext/standard/md5.h"
#include "ext/hash/php_hash.h"
#ifdef ZEND_WIN32
# include "ext/hash/php_hash.h"
#endif
#ifdef HAVE_JIT #ifdef HAVE_JIT
# include "jit/zend_jit.h" # include "jit/zend_jit.h"

View file

@ -18,6 +18,9 @@ if (PHP_OPCACHE != "no") {
zend_shared_alloc.c \ zend_shared_alloc.c \
shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); shared_alloc_win32.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
ADD_EXTENSION_DEP('opcache', 'hash');
ADD_EXTENSION_DEP('opcache', 'pcre');
if (PHP_OPCACHE_JIT == "yes") { if (PHP_OPCACHE_JIT == "yes") {
if (CHECK_HEADER_ADD_INCLUDE("ir/ir.h", "CFLAGS_OPCACHE", PHP_OPCACHE + ";ext\\opcache\\jit")) { if (CHECK_HEADER_ADD_INCLUDE("ir/ir.h", "CFLAGS_OPCACHE", PHP_OPCACHE + ";ext\\opcache\\jit")) {
var dasm_flags = (X64 ? "-D X64=1" : "") + (X64 ? " -D X64WIN=1" : "") + " -D WIN=1"; var dasm_flags = (X64 ? "-D X64=1" : "") + (X64 ? " -D X64WIN=1" : "") + " -D WIN=1";