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.4.0beta1~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5aa6b7a2941f6678c201a62d97653a39c25ff939;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 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