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