Skip to content

Commit 83bbea7

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Don't JIT after fatal errors
2 parents 22735b3 + bbf2fc9 commit 83bbea7

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

51055105
ZEND_EXT_API void zend_jit_deactivate(void)
51065106
{
5107-
if (zend_jit_profile_counter) {
5107+
if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
51085108
zend_class_entry *ce;
51095109

51105110
zend_shared_alloc_lock();
@@ -5122,9 +5122,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
51225122
zend_jit_protect();
51235123
SHM_PROTECT();
51245124
zend_shared_alloc_unlock();
5125-
5126-
zend_jit_profile_counter = 0;
51275125
}
5126+
5127+
zend_jit_profile_counter = 0;
51285128
}
51295129

51305130
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)

0 commit comments

Comments
 (0)