From 3e72a3636e3de29e01baf03a19ebc5b0584f2da5 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 19 Jul 2007 15:56:33 +0000 Subject: [PATCH] fix #41989 (move_uploaded_file() & relative path in ZTS mode) --- ext/standard/basic_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 2488586557c..8eb725affbf 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -6038,7 +6038,7 @@ PHP_FUNCTION(move_uploaded_file) } VCWD_UNLINK(new_path); - if (rename(old_path, new_path) == 0) { + if (VCWD_RENAME(old_path, new_path) == 0) { successful = 1; } else if (php_copy_file_ex(old_path, new_path, STREAM_DISABLE_OPEN_BASEDIR TSRMLS_CC) == SUCCESS) { VCWD_UNLINK(old_path);