summaryrefslogtreecommitdiff
path: root/ext/opcache/ZendAccelerator.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-03 17:02:24 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-10 17:46:59 +0200
commit2a545ba946033528d38ccfec46fdd592c1eb4857 (patch)
tree21f8caa9c7d0f141584bcebac7214f3e77827f3b /ext/opcache/ZendAccelerator.c
parent45c19bde2292633758f7027501b157dc4fa5d017 (diff)
downloadphp-git-2a545ba946033528d38ccfec46fdd592c1eb4857.tar.gz
Fix #80175: PHP8 RC1 - JIT Buffer not working
On Windows, `SUCCESSFULLY_REATTACHED` does not imply that the process has already been properly initialized; thus we must not skip some setup steps in `zend_jit_startup()`. Closes GH-6268.
Diffstat (limited to 'ext/opcache/ZendAccelerator.c')
-rw-r--r--ext/opcache/ZendAccelerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 340c19764f..06e171b179 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -3000,7 +3000,7 @@ static zend_result accel_post_startup(void)
zend_accel_error(ACCEL_LOG_FATAL, "Failure to initialize shared memory structures - probably not enough shared memory.");
return SUCCESS;
case SUCCESSFULLY_REATTACHED:
-#ifdef HAVE_JIT
+#if defined(HAVE_JIT) && !defined(ZEND_WIN32)
reattached = 1;
#endif
zend_shared_alloc_lock();