Re: PHP CLI setting cooked terminal mode
| From: | Remi Collet | Date: | Wed, 18 Sep 2013 14:13:39 +0000 |
| Subject: | Re: PHP CLI setting cooked terminal mode | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69194@lists.php.net to get a copy of this message | ||
Le 18/09/2013 16:04, Alain Williams a écrit :
> What is needed is for this to NOT be called if the standard output is not
> connected to a tty.
From your previous message:
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
Which is standard input, not standard output
I can get it to not do this by connecting stdin to /dev/null:
./myScript < /dev/null | less
qed
> Should I raise this as a bug ?
So, I don't think there is any bug there.
Remi.