670c670
< 	if( ! $method && function_exists('getmyuid') && function_exists('fileowner') ){
---
> 	if( ! $method && (function_exists('getmyuid') || function_exists('posix_getuid')) && function_exists('fileowner') ){
677c677,680
< 			if ( getmyuid() == @fileowner($temp_file_name) )
---
> 			$myuid = @getmyuid();
> 			if ($myuid === null)
> 				$myuid = @posix_getuid();
> 			if ( $myuid == @fileowner($temp_file_name) )
710c713
< 		
---
> 
713c716
< 		
---
> 
