summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_getpwuid_error.phpt
blob: 9da73bd73ed4e6d697c5d23146f913be1992bb4a (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_getpwuid() function : error conditions
--SKIPIF--
<?php
if(!extension_loaded("posix")) dir("skip - POSIX extension not loaded");
if (getenv('SKIP_ASAN')) die('skip LSan crashes when firebird is loaded');
?>
--FILE--
<?php
echo "*** Testing posix_getpwuid() : error conditions ***\n";

echo "\n-- Testing posix_getpwuid() function negative uid --\n";
$uid = -99;
var_dump( posix_getpwuid($uid) );

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

-- Testing posix_getpwuid() function negative uid --
bool(false)
Done