php-src/ext/posix/tests/posix_initgroups.phpt

19 lines
448 B
Plaintext
Raw Normal View History

2008-12-03 16:20:59 +00:00
--TEST--
posix_initgroups(): Basic tests
--SKIPIF--
2008-12-03 20:44:15 +00:00
<?php
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
?>
2008-12-03 16:20:59 +00:00
--FILE--
<?php
var_dump(posix_initgroups('foo', 'bar'));
var_dump(posix_initgroups(NULL, NULL));
?>
--EXPECTF--
Warning: posix_initgroups() expects parameter 2 to be long, string given in %s on line %d
bool(false)
bool(false)