2 /* Prototype: int fileperms ( string $filename )
3 * Description: Returns the group ID of the file, or FALSE in case of an error.
6 /* Creating soft and hard links to a file and applying fileperms() on links */
7 <<__EntryPoint
>> function main(): void
{
8 fclose( fopen(__SystemLib\
hphp_test_tmppath('fileperms_variation1.tmp'), "w") );
10 echo "*** Testing fileperms() with links ***\n";
13 __SystemLib\
hphp_test_tmppath('fileperms_variation1.tmp'),
14 __SystemLib\
hphp_test_tmppath('fileperms_variation1_symlink.tmp')
16 var_dump( fileperms(__SystemLib\
hphp_test_tmppath('fileperms_variation1_symlink.tmp')) ); //expected true
21 __SystemLib\
hphp_test_tmppath('fileperms_variation1.tmp'),
22 __SystemLib\
hphp_test_tmppath('fileperms_variation1_link.tmp')
24 var_dump( fileperms(__SystemLib\
hphp_test_tmppath('fileperms_variation1_link.tmp')) ); // expected: true
27 echo "\n*** Done ***";
29 unlink(__SystemLib\
hphp_test_tmppath('fileperms_variation1_symlink.tmp'));
30 unlink(__SystemLib\
hphp_test_tmppath('fileperms_variation1_link.tmp'));
31 unlink(__SystemLib\
hphp_test_tmppath('fileperms_variation1.tmp'));