From 5aa6b7a2941f6678c201a62d97653a39c25ff939 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 c6edbe0b73..6f12af1f2d 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -5734,7 +5734,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.40.0