Skip to content

Commit 4fce8c8

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Don't JIT after fatal errors
2 parents d45f4ce + 83bbea7 commit 4fce8c8

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
@@ -3553,7 +3553,7 @@ ZEND_EXT_API void zend_jit_activate(void)
35533553

35543554
ZEND_EXT_API void zend_jit_deactivate(void)
35553555
{
3556-
if (zend_jit_profile_counter) {
3556+
if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
35573557
zend_class_entry *ce;
35583558

35593559
zend_shared_alloc_lock();
@@ -3571,9 +3571,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
35713571
zend_jit_protect();
35723572
SHM_PROTECT();
35733573
zend_shared_alloc_unlock();
3574-
3575-
zend_jit_profile_counter = 0;
35763574
}
3575+
3576+
zend_jit_profile_counter = 0;
35773577
}
35783578

35793579
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)

0 commit comments

Comments
 (0)