Ticket #12201: file.php.diff
File file.php.diff, 460 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | 670c670 |
2 | < if( ! $method && function_exists('getmyuid') && function_exists('fileowner') ){ |
3 | --- |
4 | > if( ! $method && (function_exists('getmyuid') || function_exists('posix_getuid')) && function_exists('fileowner') ){ |
5 | 677c677,680 |
6 | < if ( getmyuid() == @fileowner($temp_file_name) ) |
7 | --- |
8 | > $myuid = @getmyuid(); |
9 | > if ($myuid === null) |
10 | > $myuid = @posix_getuid(); |
11 | > if ( $myuid == @fileowner($temp_file_name) ) |
12 | 710c713 |
13 | < |
14 | --- |
15 | > |
16 | 713c716 |
17 | < |
18 | --- |
19 | > |