ru_php/ext/posix/tests/posix_getpwuid_error.phpt

25 lines
516 B
PHP

--TEST--
Test posix_getpwuid() function : error conditions
--EXTENSIONS--
posix
--SKIPIF--
<?php
if (getenv('SKIP_ASAN')) die('xleak 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