Annotation of embedaddon/php/ext/posix/tests/posix_setuid_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function posix_setuid() by calling it with its expected arguments
        !             3: --CREDITS--
        !             4: Marco Fabbri mrfabbri@gmail.com
        !             5: Francesco Fullone ff@ideato.it
        !             6: #PHPTestFest Cesena Italia on 2009-06-20
        !             7: --SKIPIF--
        !             8: <?php 
        !             9:         if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
        !            10: ?>
        !            11: --FILE--
        !            12: <?php
        !            13: 
        !            14: $myuid = posix_getuid();
        !            15: $uid = var_dump(posix_setuid( $myuid ) );
        !            16: 
        !            17: ?>
        !            18: --EXPECTF--
        !            19: bool(true)

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