mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
27 lines
584 B
PHP
27 lines
584 B
PHP
--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 - Fuction posix_ctermid() not available');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(posix_ctermid());
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
string(%d) "%s"
|
|
===DONE===
|