]> granicus.if.org Git - php/commit
Fix #78883: fgets(STDIN) fails on Windows
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 2 Dec 2019 14:14:57 +0000 (15:14 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 2 Dec 2019 15:52:32 +0000 (16:52 +0100)
commit996f217aa5487ead468fd8edc3ef278fb0686c32
treee9a6c57f4a3223d42b405bac11d0396ff32ced1a
parent3356dd05753578b887d52b0cb90c578165e9babf
Fix #78883: fgets(STDIN) fails on Windows

We add the `is_seekable` member to `php_stdio_stream_data`, and prefer
that over `is_pipe`, since the latter is simply a misnomer.  We keep
`is_pipe` for now for Windows only, though, because we need special
support for pipes there.  We also fix the misaligned bitfield which
formerly took 33 bit.
NEWS
main/streams/plain_wrapper.c