xref: /PHP-8.2/ext/posix/tests/posix_ttyname.phpt (revision 74859783)
1--TEST--
2Test posix_ttyname()
3--DESCRIPTION--
4Gets the absolute path to the current terminal device that is open on a given file descriptor.
5Source code: ext/posix/posix.c
6--CREDITS--
7Falko Menge, mail at falko-menge dot de
8PHP Testfest Berlin 2009-05-10
9--EXTENSIONS--
10posix
11--FILE--
12<?php
13    var_dump(posix_ttyname(STDIN));
14    var_dump(posix_ttyname(STDERR));
15    var_dump(posix_ttyname(STDOUT));
16?>
17--EXPECT--
18bool(false)
19bool(false)
20bool(false)
21