]> granicus.if.org Git - php/commitdiff
- Fixed bug #55576: Cannot conditionally move uploaded file without race
authorGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 4 Sep 2011 23:00:47 +0000 (23:00 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 4 Sep 2011 23:00:47 +0000 (23:00 +0000)
  condition.

ext/standard/basic_functions.c

index c6edbe0b730fbb418e3635096d7d58b5d1862d86..6f12af1f2de8075841216406afb2f8f3fd192a89 100644 (file)
@@ -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