posix_getsid.phpt 601 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Test posix_getsid() function test
  3. --DESCRIPTION--
  4. Get the current session id of a process pid (POSIX.1, 4.2.1)
  5. Source code: ext/posix/posix.c
  6. --CREDITS--
  7. Moritz Neuhaeuser, info@xcompile.net
  8. PHP Testfest Berlin 2009-05-10
  9. --EXTENSIONS--
  10. posix
  11. --FILE--
  12. <?php
  13. echo "*** Testing posix_getsid() : function test ***\n";
  14. $pid = posix_getpid();
  15. echo "\n-- Testing posix_getsid() function with current process pid --\n";
  16. var_dump( is_long(posix_getsid($pid)) );
  17. ?>
  18. --EXPECT--
  19. *** Testing posix_getsid() : function test ***
  20. -- Testing posix_getsid() function with current process pid --
  21. bool(true)