Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle PHP Fatal Error #438

Closed
joshbetz opened this issue Jul 25, 2019 · 1 comment
Closed

Handle PHP Fatal Error #438

joshbetz opened this issue Jul 25, 2019 · 1 comment

Comments

@joshbetz
Copy link
Contributor

When WP-CLI encounters a fatal error, it reports the fatal error and exits. VIP CLI doesn't report the fatal error, it just exits silently. We can test with the following command:

WP_CLI::add_command( 'test fatal', function() {
    trigger_error( 'Fatal Error', E_USER_ERROR );
} );

This will likely include work in the API and Runner as well as the CLI repo. Off the top of my head, the issue may be that we're ignoring stderr.

Related #361

@github-actions
Copy link
Contributor

This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant