Annotation of embedaddon/php/ext/standard/tests/file/umask_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test umask() function: error conditions
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (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: 
        !            15: echo "*** Testing umask() : error conditions ***\n";
        !            16: 
        !            17: var_dump( umask(0000, true) );  // args > expected
        !            18: 
        !            19: echo "Done\n";
        !            20: ?>
        !            21: --EXPECTF--
        !            22: *** Testing umask() : error conditions ***
        !            23: 
        !            24: Warning: umask() expects at most 1 parameter, 2 given in %s on line %d
        !            25: bool(false)
        !            26: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>