1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Properly initialize _override executor globals

These have been introduced a while ago[1], but their initialization has
been overlooked.  Since we cannot rely on TLS variables to be zeroed,
we catch up on this.

[1] <e3ef7bbbb8>

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>

Closes GH-16658.
This commit is contained in:
Christoph M. Becker
2024-10-31 22:56:42 +01:00
parent c9eafc1954
commit ec68d3c608

View File

@@ -803,6 +803,8 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals) /* {{
executor_globals->record_errors = false;
executor_globals->num_errors = 0;
executor_globals->errors = NULL;
executor_globals->filename_override = NULL;
executor_globals->lineno_override = -1;
#ifdef ZEND_MAX_EXECUTION_TIMERS
executor_globals->pid = 0;
executor_globals->oldact = (struct sigaction){0};