]> 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 9d7c0ca4936da7c9b7453a69d730689415c8a006..090364584d5c2775213159a4cda78cce11444cf6 100644 (file)
@@ -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