Skip to content

Commit 2a545ba

Browse files
committed
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.
1 parent 45c19bd commit 2a545ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PHP NEWS
99
- Opcache:
1010
. Fixed bug #80184 (Complex expression in while / if statements resolves to
1111
false incorrectly). (Nikita)
12+
. Fixed bug #80175 (PHP8 RC1 - JIT Buffer not working). (cmb)
1213

1314
- Reflection:
1415
. Fixed bug #80190 (ReflectionMethod::getReturnType() does not handle static

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ static zend_result accel_post_startup(void)
30003000
zend_accel_error(ACCEL_LOG_FATAL, "Failure to initialize shared memory structures - probably not enough shared memory.");
30013001
return SUCCESS;
30023002
case SUCCESSFULLY_REATTACHED:
3003-
#ifdef HAVE_JIT
3003+
#if defined(HAVE_JIT) && !defined(ZEND_WIN32)
30043004
reattached = 1;
30053005
#endif
30063006
zend_shared_alloc_lock();

0 commit comments

Comments
 (0)