We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When shell_exec has been disabled through the "disable_functions" php-setting, the run-method silently fails and sets pid = 0.
pid = 0
This happens as you cast to integer on the following line: https://github.com/cocur/background-process/blob/master/src/BackgroundProcess.php#L74
integer
shell_exec returns null when an error occurs - (int) null === 0. A RuntimeException should be thrown if shell_exec returns null.
shell_exec
null
(int) null === 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When shell_exec has been disabled through the "disable_functions" php-setting, the run-method silently fails and sets
pid = 0
.This happens as you cast to
integer
on the following line:https://github.com/cocur/background-process/blob/master/src/BackgroundProcess.php#L74
shell_exec
returnsnull
when an error occurs -(int) null === 0
.A RuntimeException should be thrown if shell_exec returns
null
.The text was updated successfully, but these errors were encountered: