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_err.phpt ('Test stream_isatty with redirected STDERR')

Script

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

Expected

STDIN (constant): bool(true)
STDIN (fopen): bool(true)
STDIN (php://fd/0): bool(true)
STDOUT (constant): bool(true)
STDOUT (fopen): bool(true)
STDOUT (php://fd/1): bool(true)
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 %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

001+ STDIN (constant): bool(false)
002+ STDIN (fopen): bool(false)
003+ STDIN (php://fd/0): bool(false)
004+ STDOUT (constant): bool(false)
005+ STDOUT (fopen): bool(false)
006+ STDOUT (php://fd/1): bool(false)
001- STDIN (constant): bool(true)
002- STDIN (fopen): bool(true)
003- STDIN (php://fd/0): bool(true)
004- STDOUT (constant): bool(true)
005- STDOUT (fopen): bool(true)
006- STDOUT (php://fd/1): bool(true)

 

Generated at Sun, 24 Sep 2017 15:32:56 +0000 (39 hours ago)

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