2 /* Prototype: string php_uname ([ string $mode ] )
3 * Description: Returns information about the operating system PHP is running on
6 echo "*** Testing php_uname() - usage variations\n";
7 // Prevent notices about undefines variables
8 error_reporting(E_ALL
& ~E_NOTICE
);
14 function __toString() {
30 "10.1234567e10" => 10.1234567e10
,
31 "10.7654321E-10" => 10.7654321E-10,
49 "new fooClass()" => new fooClass(),
52 "undefined var" => $undefined_var,
55 "unset var" => $unset_var,
58 // loop through each element of the array for data
60 foreach($values as $key => $value) {
61 echo "-- Iterator $key --\n";
62 var_dump( php_uname($value) );