Annotation of embedaddon/php/ext/posix/tests/posix_initgroups_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: posix_initgroups(): Basic tests
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
! 6: if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: echo "Basic test of POSIX posix_initgroups function\n";
! 11: var_dump(posix_initgroups('foo', 'bar'));
! 12: var_dump(posix_initgroups(NULL, NULL));
! 13:
! 14: ?>
! 15: ===DONE====
! 16: --EXPECTF--
! 17: Basic test of POSIX posix_initgroups function
! 18:
! 19: Warning: posix_initgroups() expects parameter 2 to be long, string given in %s on line %d
! 20: bool(false)
! 21: bool(false)
! 22: ===DONE====
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>