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