Annotation of embedaddon/php/ext/posix/tests/posix_getsid.phpt, revision 1.1.1.1
1.1 misho 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: --SKIPIF--
10: <?php
11: if(!extension_loaded("posix")) print "SKIP - POSIX extension not loaded";
12: ?>
13: --FILE--
14: <?php
15: echo "*** Testing posix_getsid() : function test ***\n";
16:
17: $pid = posix_getpid();
18: echo "\n-- Testing posix_getsid() function with current process pid --\n";
19: var_dump( is_long(posix_getsid($pid)) );
20:
21: ?>
22: ===DONE===
23: --EXPECTF--
24: *** Testing posix_getsid() : function test ***
25:
26: -- Testing posix_getsid() function with current process pid --
27: bool(true)
28: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>