blob: 551ed7304e21dd618fd46d0c48a96298aff0a388 (
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
25
26
|
--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());
?>
===DONE===
--EXPECTF--
string(%d) "%s"
===DONE===
|