From ac20ab11f77b9ad409bb5cc4c7ac09aa10392175 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Sun, 4 Sep 2011 23:00:47 +0000 Subject: [PATCH] - Fixed bug #55576: Cannot conditionally move uploaded file without race condition. --- ext/standard/basic_functions.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.50.1