Ticket #12201: file.php.patch.diff
File file.php.patch.diff, 448 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | 634c634,635 |
2 | < if( ! $method && function_exists('getmyuid') && function_exists('fileowner') ){ |
3 | --- |
4 | > $getuid_function = function_exists('getmyuid') ? 'getmyuid' : function_exists('posix_getuid') ? 'posix_getuid' : NULL; |
5 | > if( ! $method && $getuid_function && function_exists('fileowner') ){ |
6 | 641c642 |
7 | < if ( getmyuid() == fileowner($temp_file_name) ) |
8 | --- |
9 | > if ( $getuid() == fileowner($temp_file_name) ) |
10 | 646a648 |
11 | > unset( $getuid_function ); |