Skip to content

Commit 3edf5c9

Browse files
committed
Fixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT)
1 parent 41e9a8e commit 3edf5c9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ PHP NEWS
3939
- ODBC:
4040
. Fixed bug #80592 (all floats are the same in ODBC parameters). (cmb)
4141

42+
- Opcache:
43+
. Fixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT).
44+
(Dmitry)
45+
4246
- PDO_Firebird:
4347
. Fixed bug #80521 (Parameters with underscores no longer recognized). (cmb,
4448
Simonov Denis)

ext/opcache/jit/zend_jit_trace.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7629,6 +7629,11 @@ static void zend_jit_trace_init_caches(void)
76297629
static void zend_jit_trace_reset_caches(void)
76307630
{
76317631
JIT_G(tracing) = 0;
7632+
#ifdef ZTS
7633+
if (!JIT_G(exit_counters)) {
7634+
JIT_G(exit_counters) = calloc(JIT_G(max_exit_counters), 1);
7635+
}
7636+
#endif
76327637
}
76337638

76347639
static void zend_jit_trace_restart(void)

0 commit comments

Comments
 (0)