mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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:
@@ -48,7 +48,10 @@
|
||||
#include "zend_file_cache.h"
|
||||
#include "ext/pcre/php_pcre.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
|
||||
# include "jit/zend_jit.h"
|
||||
|
||||
@@ -18,6 +18,9 @@ if (PHP_OPCACHE != "no") {
|
||||
zend_shared_alloc.c \
|
||||
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 (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";
|
||||
|
||||
Reference in New Issue
Block a user