/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
file
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/file/lchgrp_basic.phpt
--TEST-- Test lchgrp() function : basic functionality --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip no windows support'); if (!function_exists("posix_getgid")) die("skip no posix_getgid()"); ?> --FILE-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt'; $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt'; $gid = posix_getgid(); var_dump( touch( $filename ) ); var_dump( symlink( $filename, $symlink ) ); var_dump( lchgrp( $filename, $gid ) ); var_dump( filegroup( $symlink ) === $gid ); ?> --CLEAN-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt'; $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt'; unlink($filename); unlink($symlink); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true)
Copyright ©2k19 -
Hexid
|
Tex7ure