--TEST-- posix_isatty(): casting stream does not emit data loss and should not emit warnings --EXTENSIONS-- posix --SKIPIF-- --INI-- allow_url_fopen=1 --FILE-- $pid, 'uri' => $uri] = http_server($responses, $output); /* Note: the warning is bogus in this case as no data actually gets lost, * but this checks that stream casting works */ $handle = fopen($uri, 'r'); var_dump(posix_isatty($handle)); var_dump(fread($handle, 20)); fclose($handle); http_server_kill($pid); ?> --EXPECT-- bool(false) string(4) "Body"