1--TEST--
2Non castable user-space streams (stream_cast())
3--FILE--
4<?php
5class test_wrapper {
6    public $context;
7    public $return_value;
8    function stream_open($path, $mode, $openedpath) {
9        return true;
10    }
11    function stream_eof() {
12        return false;
13    }
14}
15
16stream_wrapper_register('test', 'test_wrapper');
17$fd = fopen("test://foo","r");
18var_dump(stream_isatty($fd));
19
20?>
21--EXPECT--
22bool(false)
23