Skip to content

Commit 2ad778b

Browse files
committed
Fix missing GC_PERSISTENT_LOCAL flag on accel_globals.key
1 parent b598dbf commit 2ad778b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: ext/opcache/ZendAccelerator.c

+1
Original file line numberDiff line numberDiff line change
@@ -2929,6 +2929,7 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
29292929
#endif
29302930
memset(accel_globals, 0, sizeof(zend_accel_globals));
29312931
accel_globals->key = zend_string_alloc(ZCG_KEY_LEN, true);
2932+
GC_MAKE_PERSISTENT_LOCAL(accel_globals->key);
29322933
}
29332934

29342935
#ifdef ZTS

0 commit comments

Comments
 (0)