* Use raw file descriptor in posix_isatty() check to avoid warning on
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Dec 2006 08:16:22 +0000 (08:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Dec 2006 08:16:22 +0000 (08:16 +0000)
commitdc35c3b933dff3f3e0db22bd5f6a5e8d0969a49e
tree6ce5d2fae89fc97ecb481949700d0477a73dca8b
parent25d30d0ace61219c09d29beb9a9449072fe2a3ae
* Use raw file descriptor in posix_isatty() check to avoid warning on
  Linux systems with at least some versions of PHP

For some reason posix_isatty(STDIN) prints a warning on Linux about being unable to seek, though it gives the right return value and has no obvious ill effects otherwise.
No such warning appears on Mac OS X.
Using the raw file descriptor number (0 for stdin) seems to work, and is already used in the parser test framework where it checks stdout (1) this way.
RELEASE-NOTES
install-utils.inc