xref: /PHP-8.0/ext/posix/tests/posix_ctermid.phpt (revision c5401854)
1--TEST--
2Test posix_ctermid()
3--DESCRIPTION--
4Gets path name of controlling terminal.
5Source code: ext/posix/posix.c
6--CREDITS--
7Falko Menge, mail at falko-menge dot de
8PHP Testfest Berlin 2009-05-10
9--SKIPIF--
10<?php
11    if (!extension_loaded('posix')) {
12        die('SKIP - POSIX extension not available');
13    }
14    // needed because of #ifdef HAVE_CTERMID in posix.c
15    if (!function_exists('posix_ctermid')) {
16        die('SKIP - Function posix_ctermid() not available');
17    }
18?>
19--FILE--
20<?php
21    var_dump(posix_ctermid());
22?>
23--EXPECTF--
24string(%d) "%s"
25