File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3232
3333$ worker = null ;
3434$ requestCount = 0 ;
35- $ maxRequests = $ _ENV ['MAX_REQUESTS ' ] ?? $ _SERVER ['MAX_REQUESTS ' ];
35+ $ maxRequests = $ _ENV ['MAX_REQUESTS ' ] ?? $ _SERVER ['MAX_REQUESTS ' ] ?? 1000 ;
3636$ requestMaxExecutionTime = $ _ENV ['REQUEST_MAX_EXECUTION_TIME ' ] ?? $ _SERVER ['REQUEST_MAX_EXECUTION_TIME ' ] ?? null ;
3737
3838if (PHP_OS_FAMILY === 'Linux ' && ! is_null ($ requestMaxExecutionTime )) {
Original file line number Diff line number Diff line change 11<?php
22
3+ // Set a default for the application base path and public path if they are missing...
4+ $ _SERVER ['APP_BASE_PATH ' ] = $ _ENV ['APP_BASE_PATH ' ] ?? $ _SERVER ['APP_BASE_PATH ' ] ?? __DIR__ .'/.. ' ;
5+ $ _SERVER ['APP_PUBLIC_PATH ' ] = $ _ENV ['APP_PUBLIC_PATH ' ] ?? $ _SERVER ['APP_BASE_PATH ' ] ?? __DIR__ ;
6+
37require __DIR__ .'/../vendor/laravel/octane/bin/frankenphp-worker.php ' ;
You can’t perform that action at this time.
0 commit comments