Skip to content

Commit bbf2fc9

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Don't JIT after fatal errors
2 parents 177a6f5 + 77a497d commit bbf2fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5096,7 +5096,7 @@ ZEND_EXT_API void zend_jit_activate(void)
50965096

50975097
ZEND_EXT_API void zend_jit_deactivate(void)
50985098
{
5099-
if (zend_jit_profile_counter) {
5099+
if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
51005100
zend_class_entry *ce;
51015101

51025102
zend_shared_alloc_lock();
@@ -5114,9 +5114,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
51145114
zend_jit_protect();
51155115
SHM_PROTECT();
51165116
zend_shared_alloc_unlock();
5117-
5118-
zend_jit_profile_counter = 0;
51195117
}
5118+
5119+
zend_jit_profile_counter = 0;
51205120
}
51215121

51225122
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)

0 commit comments

Comments
 (0)