mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
20 lines
413 B
Plaintext
20 lines
413 B
Plaintext
|
--TEST--
|
||
|
Test function posix_seteuid() by calling it with its expected arguments
|
||
|
--CREDITS--
|
||
|
Marco Fabbri mrfabbri@gmail.com
|
||
|
Francesco Fullone ff@ideato.it
|
||
|
#PHPTestFest Cesena Italia on 2009-06-20
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$myuid = posix_geteuid();
|
||
|
$uid = var_dump(posix_seteuid( $myuid ) );
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
bool(true)
|