FuelPhp stops the execution when there is an error (it doesn't matter if it's fatal, warning, strict...etc) running fuel tasks.
For example running: "php oil r mytask" with a warning error.
The logic is into command.php L110 and it stops the execution doing an exit(1)
I need to find a way to skip this stop and override this behaviour since we want to continue the execution but reporting php errors.
The code there is:
// Developers of third-party tasks may not be displaying PHP errors. Report any error and quit
set_error_handler(function($errno, $errstr, $errfile, $errline) {
if (!error_reporting()) return; // If the error was supressed with an @ then we ignore it!
\Cli::error("Error: {$errstr} in $errfile on $errline");
\Cli::beep();
exit(1);
});
But when there is a client call FuelPHP uses \Config::get('errors.continue_on') to get the configured settings and it would have more sense to take in account the same configuration.
How can I skip this stop?
Thanks.
It looks like you're new here. If you want to get involved, click one of these buttons!