Skip to content

Commit 7177461

Browse files
danogiluuu1994
authored andcommitted
Report warning if JIT cannot be enabled
Closes GH-12404
1 parent 90f2e76 commit 7177461

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.1.26
44

5-
5+
- Opcache:
6+
. Added warning when JIT cannot be enabled. (danog)
67

78
26 Oct 2023, PHP 8.1.25
89

ext/opcache/ZendAccelerator.c

+1
Original file line numberDiff line numberDiff line change
@@ -3270,6 +3270,7 @@ static zend_result accel_post_startup(void)
32703270
|| zend_jit_startup(ZSMMG(reserved), jit_size, reattached) != SUCCESS) {
32713271
JIT_G(enabled) = 0;
32723272
JIT_G(on) = 0;
3273+
zend_accel_error(ACCEL_LOG_WARNING, "Could not enable JIT!");
32733274
}
32743275
}
32753276
#endif

0 commit comments

Comments
 (0)