summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_getgrgid_error.phpt
blob: 9b01abc350910b2cdf029f2ccc6ac29e45432621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Test posix_getgrgid() function : error conditions
--SKIPIF--
<?php
if(!extension_loaded("posix")) die("skip - POSIX extension not loaded");
if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded');
?>
--FILE--
<?php
echo "*** Testing posix_getgrgid() : error conditions ***\n";

echo "\n-- Testing posix_getgrgid() function with a negative group id --\n";
$gid = -999;
var_dump( posix_getgrgid($gid));

echo "Done";
?>
--EXPECT--
*** Testing posix_getgrgid() : error conditions ***

-- Testing posix_getgrgid() function with a negative group id --
bool(false)
Done