Merge branch 'PHP-8.2'

* PHP-8.2:
  Fix crashes after opcache restart
  [ci skip] Update NEWS for PHP 8.2.0RC5
This commit is contained in:
Dmitry Stogov 2022-10-11 14:25:36 +03:00
commit 5b65594d78

View File

@ -5164,6 +5164,10 @@ ZEND_EXT_API void zend_jit_restart(void)
if (dasm_buf) {
zend_jit_unprotect();
#if ZEND_JIT_TARGET_ARM64
memset(dasm_labels_veneers, 0, sizeof(void*) * ZEND_MM_ALIGNED_SIZE_EX(zend_lb_MAX, DASM_ALIGNMENT));
#endif
/* restore JIT buffer pos */
dasm_ptr[0] = dasm_ptr[1];