1--TEST-- 2Test stream_isatty with redirected STDIN/STDERR 3--SKIPIF-- 4<?php 5if (getenv("SKIP_IO_CAPTURE_TESTS")) { 6 die("skip I/O capture test"); 7} 8?> 9--CAPTURE_STDIO-- 10STDIN STDERR 11--FILE-- 12<?php 13require dirname(__FILE__).'/stream_isatty.inc'; 14testToStdErr(); 15?> 16--EXPECTF-- 17STDIN (constant): bool(false) 18STDIN (fopen): bool(false) 19STDIN (php://fd/0): bool(false) 20STDOUT (constant): bool(true) 21STDOUT (fopen): bool(true) 22STDOUT (php://fd/1): bool(true) 23STDERR (constant): bool(false) 24STDERR (fopen): bool(false) 25STDERR (php://fd/2): bool(false) 26Not a stream: 27Warning: stream_isatty() expects parameter 1 to be resource, string given in %s on line %d 28bool(false) 29Invalid stream (php://temp): bool(false) 30Invalid stream (php://input): bool(false) 31Invalid stream (php://memory): bool(false) 32File stream: bool(false) 33