Skip to content

Commit

Permalink
updated memory limit in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
agrzegorzewski committed Nov 13, 2024
1 parent c428e9a commit bb27f2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/fixtures/laravel11/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ function noOomResponse() {
});

Route::get('/oom/small', function () {
ini_set('memory_limit', memory_get_usage() + (1024 * 1024 * 5));
// The 5 MiB default limit is not enough to
// deliver the OOM error in this scenario.
Bugsnag::setMemoryLimitIncrease(1024 * 1024 * 6); // 6 MiB
ini_set('memory_limit', memory_get_usage() + (1024 * 1024 * 5)); // 5 MiB
ini_set('display_errors', true);

$i = 0;
Expand Down

0 comments on commit bb27f2d

Please sign in to comment.