File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? ????, PHP 8.2.30
4
4
5
+ - Opcache:
6
+ . Reset global pointers to prevent use-after-free in zend_jit_status().
7
+ (Florian Engelhardt)
5
8
6
9
03 Jul 2025, PHP 8.2.29
7
10
Original file line number Diff line number Diff line change @@ -5085,6 +5085,14 @@ ZEND_EXT_API void zend_jit_shutdown(void)
5085
5085
#else
5086
5086
zend_jit_trace_free_caches (& jit_globals );
5087
5087
#endif
5088
+
5089
+ /* Reset global pointers to prevent use-after-free in `zend_jit_status()`
5090
+ * after gracefully restarting Apache with mod_php, see:
5091
+ * https://github.com/php/php-src/pull/19212 */
5092
+ dasm_ptr = NULL ;
5093
+ dasm_buf = NULL ;
5094
+ dasm_end = NULL ;
5095
+ dasm_size = 0 ;
5088
5096
}
5089
5097
5090
5098
static void zend_jit_reset_counters (void )
You can’t perform that action at this time.
0 commit comments