Annotation of embedaddon/php/ext/posix/tests/posix_getgrgid_wrongparams.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test parameters on posix_getgrgid().
! 3: --CREDITS--
! 4: Till Klampaeckel, till@php.net
! 5: TestFest Berlin 2009
! 6: --SKIPIF--
! 7: <?php
! 8: if (!extension_loaded('posix')) {
! 9: die('SKIP The posix extension is not loaded.');
! 10: }
! 11: if (strtolower(PHP_OS) == 'darwin') {
! 12: die('SKIP This test doesn\'t run on MacOSX/Darwin.');
! 13: }
! 14: --FILE--
! 15: <?php
! 16: $gid = PHP_INT_MAX; // obscene high gid
! 17: var_dump(posix_getgrgid($gid));
! 18: var_dump(posix_getgrgid(-1));
! 19: var_dump(posix_getgrgid());
! 20: ?>
! 21: ===DONE===
! 22: --EXPECTF--
! 23: bool(false)
! 24: bool(false)
! 25:
! 26: Warning: posix_getgrgid() expects exactly 1 parameter, 0 given in %s on line %d
! 27: bool(false)
! 28: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>