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 14, 2024
1 parent 319a67c commit deb5037
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 deb5037

Please sign in to comment.