Skip to content

Commit

Permalink
Force stack frame arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jun 12, 2024
1 parent fbe27e6 commit 5ff5464
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions config/flare.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@

'with_stack_frame_arguments' => true,

/*
|--------------------------------------------------------------------------
| Force stack frame arguments ini setting
|--------------------------------------------------------------------------
|
| On some machines, the `zend.exception_ignore_args` ini setting is
| enabled by default making it impossible to get the arguments of stack
| frames. You can force this setting to be disabled here.
|
*/

'force_stack_frame_arguments_ini_setting' => true,

/*
|--------------------------------------------------------------------------
| Argument reducers
Expand Down
5 changes: 4 additions & 1 deletion src/FlareServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ protected function registerFlare(): void
->registerMiddleware($this->getFlareMiddleware())
->registerMiddleware(new AddSolutions(new SolutionProviderRepository($this->getSolutionProviders())))
->argumentReducers(config('flare.argument_reducers', []))
->withStackFrameArguments(config('flare.with_stack_frame_arguments', true));
->withStackFrameArguments(
config('flare.with_stack_frame_arguments', true),
config('flare.force_stack_frame_arguments_ini_setting', true)
);
});

$this->app->singleton(SentReports::class);
Expand Down

0 comments on commit 5ff5464

Please sign in to comment.