- Fixed bug #55576: Cannot conditionally move uploaded file without race

condition.
This commit is contained in:
Gustavo André dos Santos Lopes 2011-09-04 23:00:47 +00:00
parent 08f78070a5
commit cc45ce4586
2 changed files with 5 additions and 3 deletions

7
NEWS
View File

@ -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

View File

@ -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