Skip to content

Non-zero exit code when file is empty #18336

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

Open
mvorisek opened this issue Apr 16, 2025 · 0 comments
Open

Non-zero exit code when file is empty #18336

mvorisek opened this issue Apr 16, 2025 · 0 comments

Comments

@mvorisek
Copy link
Contributor

Description

Currently, CLI exists with zero exit code and no warning when the input file is empty.

This was discovered in #18272.

Although empty file is rendered as empty as there is no <?php starting token, CLI should warn the user when the input file is empty, as executing empty entry file is normally not helpful. This will help the user to understand the issue better, not only because of broken FS/lock, but also when the user emptied the entry file by a mistake.

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