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

Getting a PHP warning on fgets() #25

Open
kevintweber opened this issue Nov 28, 2014 · 0 comments
Open

Getting a PHP warning on fgets() #25

kevintweber opened this issue Nov 28, 2014 · 0 comments

Comments

@kevintweber
Copy link

I am using child processes to create other child processes.

In the grandchildren processes, in Spork / Fifo.php I am receiving the following PHP warning:
PHP Warning: fgets(): 56 is not a valid stream resource in ... /vendor/kriswallsmith/spork/src/Spork/Fifo.php on line 81

One possible fix is the suppress warnings from that function:
while (false !== $data = @fgets($this->read)) {

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant