From cc45ce4586664fa07a3d2b11c3e6d7d76859f3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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. --- NEWS | 7 +++++-- ext/standard/basic_functions.c | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index f3dfc37bbc0..9cb3c5984f8 100644 --- a/NEWS +++ b/NEWS @@ -5,8 +5,11 @@ PHP NEWS - Core: . Fixed bug #52461 (Incomplete doctype and missing xmlns). (virsacer at web dot de, Pierre) - . Fixed bug #55366: keys lost when using substr_replace an array (Arpad) - . Fixed bug #55510: $_FILES 'name' missing first character after upload (Arpad) + . Fixed bug #55366: keys lost when using substr_replace an array. (Arpad) + . Fixed bug #55510: $_FILES 'name' missing first character after upload. + (Arpad) + . Fixed bug #55576: Cannot conditionally move uploaded file without race + condition. (Gustavo) - DateTime: . Fixed bug #48476 (cloning extended DateTime class without calling diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index eb5a81705ed..ea5c3683fbb 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -5849,7 +5849,6 @@ PHP_FUNCTION(move_uploaded_file) RETURN_FALSE; } - VCWD_UNLINK(new_path); if (VCWD_RENAME(path, new_path) == 0) { successful = 1; #ifndef PHP_WIN32