improve get_temp_dir() implementation

This commit is contained in:
Robin Appelman 2011-11-22 01:48:08 +01:00 committed by Robin Appelman
parent fd4b30ac6f
commit e53e7990c4
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ if(!function_exists('get_temp_dir')) {
unlink($temp); unlink($temp);
return dirname($temp); return dirname($temp);
} }
if( $temp=sys_get_temp_dir()) return $temp;
return null; return null;
} }
} }