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

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

Comments

Projects
None yet
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 added a commit that referenced this issue Jan 11, 2013

@peteboere

This comment has been minimized.

Show comment
Hide comment
@peteboere

peteboere Jan 11, 2013

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

Owner

peteboere commented Jan 11, 2013

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 added a commit that referenced this issue Jan 12, 2013

@amercier

This comment has been minimized.

Show comment
Hide comment
@amercier

amercier Jan 14, 2013

Confirming the workaround is fixing the issue. Closing

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