Skip to content

Commit e40a6fc

Browse files
committed
Initialize ping_auto_globals_mask to prevent undefined behaviour
1 parent adc2382 commit e40a6fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,6 +4444,8 @@ static int accel_preload(const char *config, bool in_child)
44444444

44454445
if (PG(auto_globals_jit)) {
44464446
ping_auto_globals_mask = zend_accel_get_auto_globals();
4447+
} else {
4448+
ping_auto_globals_mask = 0;
44474449
}
44484450

44494451
if (EG(zend_constants)) {

0 commit comments

Comments
 (0)