1--TEST--
2Test function posix_seteuid() by substituting argument 1 with int values.
3--SKIPIF--
4<?php
5        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
6        if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
7?>
8--CREDITS--
9Marco Fabbri mrfabbri@gmail.com
10Francesco Fullone ff@ideato.it
11#PHPTestFest Cesena Italia on 2009-06-20
12--FILE--
13<?php
14
15
16echo "*** Test substituting argument 1 with int values ***\n";
17
18
19
20$variation_array = array (
21    'int 0' => 0,
22    'int 1' => 1,
23    'int -12345' => -12345,
24    );
25
26
27foreach ( $variation_array as $var ) {
28  var_dump(posix_seteuid( $var  ) );
29}
30?>
31--EXPECT--
32*** Test substituting argument 1 with int values ***
33bool(false)
34bool(false)
35bool(false)
36