Skip to content

stream_set_blocking not working with php://stdin on Windows #41

Closed
amercier opened this Issue Jan 11, 2013 · 2 comments

2 participants

@amercier

When I try to execute cli.php, It fails with the following message: Failed to disable stdin blocking. It appears that the function stream_set_blocking is not working with php://stdin on Windows.

Configuration:

  • Windows 7
  • PHP 5.4.10 (cli) (built: Dec 19 2012 20:33:35) non thread safe
  • CSS Crush 1.8

I've been looking for a workaround on the Internet, with no luck.
Any suggestions?

@peteboere peteboere added a commit that referenced this issue Jan 11, 2013
@peteboere Added a workaround for issue #41 (stream_set_blocking not working wit…
…h php://stdin on Windows)
c2f6903
@peteboere
Owner

Thanks for spotting this. You're right, stream_set_blocking doesn't work at all in Windows.
There's a fix in the test branch:

https://github.com/peteboere/css-crush/tree/test

@peteboere peteboere added a commit that referenced this issue Jan 12, 2013
@peteboere Added a workaround for issue #41 (stream_set_blocking not working wit…
…h php://stdin on Windows)
9e2e510
@amercier

Confirming the workaround is fixing the issue. Closing

@amercier amercier closed this Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.