1--TEST--
2Test function posix_errno() by calling it with with permission error
3--CREDITS--
4Morten Amundsen mor10am@gmail.com
5Francesco Fullone ff@ideato.it
6#PHPTestFest Cesena Italia on 2009-06-20
7--EXTENSIONS--
8posix
9--SKIPIF--
10<?php
11        if(posix_getuid()==0) print "skip - Cannot run test as root.";
12?>
13--FILE--
14<?php
15
16echo "*** Test by calling function with permission error ***\n";
17
18posix_setuid(0);
19var_dump(posix_errno());
20
21?>
22--EXPECT--
23*** Test by calling function with permission error ***
24int(1)
25