diff --git a/features/fixtures/laravel11/routes/web.php b/features/fixtures/laravel11/routes/web.php index 973608e..bb136a2 100644 --- a/features/fixtures/laravel11/routes/web.php +++ b/features/fixtures/laravel11/routes/web.php @@ -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;