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