1--TEST-- 2Test umask() function: error conditions 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) == 'WIN') { 6 die('skip.. only for Linux'); 7} 8?> 9--FILE-- 10<?php 11/* Prototype: int umask ( [int $mask] ); 12 Description: Changes the current umask 13*/ 14 15echo "*** Testing umask() : error conditions ***\n"; 16 17var_dump( umask(0000, true) ); // args > expected 18 19echo "Done\n"; 20?> 21--EXPECTF-- 22*** Testing umask() : error conditions *** 23 24Warning: umask() expects at most 1 parameter, 2 given in %s on line %d 25bool(false) 26Done 27