From: Gustavo André dos Santos Lopes Date: Sun, 4 Sep 2011 23:00:47 +0000 (+0000) Subject: - Fixed bug #55576: Cannot conditionally move uploaded file without race X-Git-Tag: php-5.5.0alpha1~1349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac20ab11f77b9ad409bb5cc4c7ac09aa10392175;p=php - Fixed bug #55576: Cannot conditionally move uploaded file without race condition. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 9d7c0ca493..090364584d 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -5764,7 +5764,6 @@ PHP_FUNCTION(move_uploaded_file) RETURN_FALSE; } - VCWD_UNLINK(new_path); if (VCWD_RENAME(path, new_path) == 0) { successful = 1; #ifndef PHP_WIN32