Make WordPress Core

Ticket #12201: file.php.patch.diff

File file.php.patch.diff, 448 bytes (added by imme-emosol, 15 years ago)

Another patch for the ftp-issue, not using the at-sign(@).

Line 
1634c634,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') ){
6641c642
7<                       if ( getmyuid() == fileowner($temp_file_name) )
8---
9>                       if ( $getuid() == fileowner($temp_file_name) )
10646a648
11>       unset( $getuid_function );