xref: /PHP-8.0/ext/posix/tests/posix_getsid.phpt (revision c5401854)
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--EXPECT--
23*** Testing posix_getsid() : function test ***
24
25-- Testing posix_getsid() function with current process pid --
26bool(true)
27