posix_ctermid.phpt 492 B

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