Skip to content

Commit

Permalink
Zero out all globals to make sure everything is initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Oct 6, 2021
1 parent 2ae4ad4 commit 94eb3f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ static void xdebug_init_base_globals(struct xdebug_base_info *xg)

static void php_xdebug_init_globals(zend_xdebug_globals *xg)
{
memset(&xg->globals, 0, sizeof(xg->globals));

xdebug_init_library_globals(&xg->globals.library);
xdebug_init_base_globals(&xg->base);

Expand Down

0 comments on commit 94eb3f0

Please sign in to comment.