mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Initialize ping_auto_globals_mask to prevent undefined behaviour
Closes GH-10121
This commit is contained in:
parent
6de376a2b4
commit
c4487b7a12
2 changed files with 3 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -15,6 +15,7 @@ PHP NEWS
|
||||||
|
|
||||||
- Opcache:
|
- Opcache:
|
||||||
. Fix inverted bailout value in zend_runtime_jit() (Max Kellermann).
|
. Fix inverted bailout value in zend_runtime_jit() (Max Kellermann).
|
||||||
|
. Fix access to uninitialized variable in accel_preload(). (nielsdos)
|
||||||
|
|
||||||
- TSRM:
|
- TSRM:
|
||||||
. Fixed Windows shmget() wrt. IPC_PRIVATE. (Tyson Andre)
|
. Fixed Windows shmget() wrt. IPC_PRIVATE. (Tyson Andre)
|
||||||
|
|
|
@ -4444,6 +4444,8 @@ static int accel_preload(const char *config, bool in_child)
|
||||||
|
|
||||||
if (PG(auto_globals_jit)) {
|
if (PG(auto_globals_jit)) {
|
||||||
ping_auto_globals_mask = zend_accel_get_auto_globals();
|
ping_auto_globals_mask = zend_accel_get_auto_globals();
|
||||||
|
} else {
|
||||||
|
ping_auto_globals_mask = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EG(zend_constants)) {
|
if (EG(zend_constants)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue