xref: /PHP-7.4/ext/posix/tests/posix_getsid.phpt (revision 782352c5)
1--TEST--
2Test posix_getsid() function test
3--DESCRIPTION--
4Get the current session id of a process pid (POSIX.1, 4.2.1)
5Source code: ext/posix/posix.c
6--CREDITS--
7Moritz Neuhaeuser, info@xcompile.net
8PHP 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
15echo "*** Testing posix_getsid() : function test ***\n";
16
17$pid = posix_getpid();
18echo "\n-- Testing posix_getsid() function with current process pid --\n";
19var_dump( is_long(posix_getsid($pid)) );
20
21?>
22===DONE===
23--EXPECT--
24*** Testing posix_getsid() : function test ***
25
26-- Testing posix_getsid() function with current process pid --
27bool(true)
28===DONE===
29