PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for tests/output/stream_isatty_in-out.phpt ('Test stream_isatty with redirected STDIN/STDOUT')

Script

1: <?php
2:
require dirname(__FILE__).'/stream_isatty.inc';
3:
testToStdOut();
4:
?>
5:

Expected

STDIN (constant): bool(false)
STDIN (fopen): bool(false)
STDIN (php://fd/0): bool(false)
STDOUT (constant): bool(false)
STDOUT (fopen): bool(false)
STDOUT (php://fd/1): bool(false)
STDERR (constant): bool(true)
STDERR (fopen): bool(true)
STDERR (php://fd/2): bool(true)
Not a stream: 
Warning: stream_isatty() expects parameter 1 to be resource, string given in %s on line %d
bool(false)
Invalid stream (php://temp): bool(false)
Invalid stream (php://input): bool(false)
Invalid stream (php://memory): bool(false)
File stream: bool(false)

Output

STDIN (constant): bool(false)
STDIN (fopen): bool(false)
STDIN (php://fd/0): bool(false)
STDOUT (constant): bool(false)
STDOUT (fopen): bool(false)
STDOUT (php://fd/1): bool(false)
STDERR (constant): bool(false)
STDERR (fopen): bool(false)
STDERR (php://fd/2): bool(false)
Not a stream: 
Warning: stream_isatty() expects parameter 1 to be resource, string given in /var/php_gcov/PHP_HEAD/tests/output/stream_isatty.inc on line 23
bool(false)
Invalid stream (php://temp): bool(false)
Invalid stream (php://input): bool(false)
Invalid stream (php://memory): bool(false)
File stream: bool(false)

Diff

007+ STDERR (constant): bool(false)
008+ STDERR (fopen): bool(false)
009+ STDERR (php://fd/2): bool(false)
007- STDERR (constant): bool(true)
008- STDERR (fopen): bool(true)
009- STDERR (php://fd/2): bool(true)

 

Generated at Sun, 12 Nov 2017 21:17:35 +0000 (11 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.