1--TEST--
2Test function posix_errno() by calling it with its expected arguments
3--CREDITS--
4Morten Amundsen mor10am@gmail.com
5Francesco Fullone ff@ideato.it
6#PHPTestFest Cesena Italia on 2009-06-20
7--SKIPIF--
8<?php
9if(!extension_loaded("posix")) print "skip posix extension not loaded";
10if(!extension_loaded("pcntl")) print "skip pcntl extension not loaded";
11?>
12--FILE--
13<?php
14echo "*** Test by calling function with pid error ***\n";
15
16// Don't rely on PCNTL extension being around
17$SIGKILL = 9;
18
19posix_kill((2 ** 22) + 1, $SIGKILL);
20
21var_dump(posix_errno());
22?>
23--EXPECT--
24*** Test by calling function with pid error ***
25int(3)
26