mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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:
parent
54e5e7b507
commit
3d6bd16239
2 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue