--TEST--
Test lchown() function : basic functionality 
--SKIPIF--
<?php
if (substr(PHP_OS03) == 'WIN') die('skip no windows support');
if (!
function_exists("posix_getuid")) die("skip no posix_getuid()");
?>
--FILE--
<?php
/* Prototype  : bool lchown (string filename, mixed user)
 * Description: Change file owner of a symlink
 * Source code: ext/standard/filestat.c
 * Alias to functions: 
 */

echo "*** Testing lchown() : basic functionality ***\n";
$filename dirname(__FILE__) . DIRECTORY_SEPARATOR 'lchown.txt';
$symlink dirname(__FILE__) . DIRECTORY_SEPARATOR 'symlink.txt';

$uid posix_getuid();

var_dumptouch$filename ) );
var_dumpsymlink$filename$symlink ) );
var_dumplchown$filename$uid ) );
var_dumpfileowner$symlink ) === $uid );

?>
===DONE===
--CLEAN--
<?php

$filename 
dirname(__FILE__) . DIRECTORY_SEPARATOR 'lchown.txt';
$symlink dirname(__FILE__) . DIRECTORY_SEPARATOR 'symlink.txt';
unlink($filename);
unlink($symlink);

?>
--EXPECTF--
*** Testing lchown() : basic functionality ***
bool(true)
bool(true)
bool(true)
bool(true)
===DONE===