]> granicus.if.org Git - php/blob
23859a33ac
[php] /
1 --TEST--
2 Test php_uname() function -  error conditions - pass function incorrect arguments
3 --FILE--
4 <?php
5 /* Prototype: string php_uname  ([ string $mode  ] )
6  * Description:  Returns information about the operating system PHP is running on
7 */
8
9 echo "*** Testing php_uname() - error test\n";
10
11 echo "\n-- Testing php_uname() function with invalid mode --\n";
12 // am invalid mode should result in same o/p as mode 'a'
13 var_dump( php_uname('z') == php_uname('z') );
14
15 ?>
16 --EXPECTF--
17 *** Testing php_uname() - error test
18
19 -- Testing php_uname() function with invalid mode --
20 bool(true)