On 11 January 2011 16:43, Robert Cummings <rob...@interjinn.com> wrote:
> On 11-01-11 11:27 AM, Richard Quadling wrote:
>> As PHP on windows requires an [ENTER] key to be pressed to pass the
>> typed string to the code (even for fgetc(STDIN) ), then this may not
>> be what you want.
> Have you tried setting the stream to non-blocking to prevent the need for
> the return key?
> Cheers,
> Rob.
> --
> E-Mail Disclaimer: Information contained in this message and any
> attached documents is considered confidential and legally protected.
> This message is intended solely for the addressee(s). Disclosure,
> copying, and distribution are prohibited unless authorized.

PHP on windows doesn't support non-blocking streams. It's not so much
PHP's fault, but the underlying code from MS that PHP uses (AFAICT).

Setting a stream to non blocking and then immediately asking if it is
blocking shows that it is still blocking.

http://bugs.php.net/bug.php?id=34972 is the best example of this
issue. Especially the last comment ...

"what makes you think that anything has been done about this feature request?".

I'm not holding my breath for a fix.

Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to