]> granicus.if.org Git - php/blob
2792ff5b3b
[php] /
1 --TEST--
2 Test posix_strerror() function : error conditions
3 --SKIPIF--
4 <?php
5         if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
6 ?>
7 --FILE--
8 <?php
9 /* Prototype  : proto string posix_strerror(int errno)
10  * Description: Retrieve the system error message associated with the given errno.
11  * Source code: ext/posix/posix.c
12  * Alias to functions:
13  */
14
15 echo "*** Testing posix_strerror() : error conditions ***\n";
16
17 echo "\n-- Testing posix_strerror() function with invalid error number --\n";
18 $errno = -999;
19 echo gettype( posix_strerror($errno) )."\n";
20
21 echo "Done";
22 ?>
23 --EXPECT--
24 *** Testing posix_strerror() : error conditions ***
25
26 -- Testing posix_strerror() function with invalid error number --
27 string
28 Done