summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_initgroups_basic.phpt
blob: afed61033591ddd7b5cecf062da6e29524b6bbd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
posix_initgroups(): Basic tests
--SKIPIF--
<?php
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 
if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
?>
--FILE--
<?php
echo "Basic test of POSIX posix_initgroups function\n"; 
var_dump(posix_initgroups('foo', 'bar'));
var_dump(posix_initgroups(NULL, NULL));

?>
===DONE====
--EXPECTF--
Basic test of POSIX posix_initgroups function

Warning: posix_initgroups() expects parameter 2 to be integer, string given in %s on line %d
bool(false)
bool(false)
===DONE====