`max_execution_time` not getting applied in php.ini
foremtehan opened this issue · 3 comments
foremtehan commented
TrafeX commented
Hi @foremtehan,
I believe this is because artisan overrides the max_execution_time to set it to unlimited for CLI commands.
foremtehan commented
I don't think so, Here is the artisan file https://github.com/laravel/laravel/blob/9.x/artisan
TrafeX commented
You're right, I forgot that PHP overrides a few settings when using the CLI; https://www.php.net/manual/en/features.commandline.differences.php
As the docs said, these settings cannot be changed via ini files, you can only override it in the code with init_set.

