Changeset 9892

Show
Ignore:
Timestamp:
11/13/08 04:56:50 (2 months ago)
Author:
afz
Message:

fix problem in windows os for last changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/Utils.php

    r9890 r9892  
    228228        $result = false; 
    229229        if (is_null($mode)) { 
    230             $php_as_owner = (@posix_getuid() === fileowner($path)); 
    231             $php_as_group = (@posix_getgid() === filegroup($path)); 
     230            $php_as_owner = (function_exists('posix_getuid') && posix_getuid() === fileowner($path)); 
     231            $php_as_group = (function_exists('posix_getgid') && posix_getgid() === filegroup($path)); 
    232232            if (is_dir($path)) { 
    233233                $mode = $php_as_owner? 0755 : ($php_as_group? 0775 : 0777);