Permalink
Browse files

MFH: fix #41989 (move_uploaded_file() & relative path in ZTS mode)

  • Loading branch information...
1 parent fb7efda commit 93af1c1f84aca471a2e6d48a0705b5db66d5a819 @tony2001 tony2001 committed Jul 19, 2007
Showing with 2 additions and 1 deletion.
  1. +1 −0 NEWS
  2. +1 −1 ext/standard/basic_functions.c
View
1 NEWS
@@ -60,6 +60,7 @@ PHP NEWS
- Fixed bug #42019 (configure option --with-adabas=DIR does not work). (Jani)
- Fixed bug #42015 (ldap_rename(): server error "DSA is unwilling to perform").
(bob at mroczka dot com, Jani)
+- Fixed bug #41989 (move_uploaded_file() & relative path in ZTS mode). (Tony)
- Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+'). (Derick)
- Fixed bug #41961 (Ensure search for hidden private methods does not stray
@@ -6096,7 +6096,7 @@ PHP_FUNCTION(move_uploaded_file)
}
VCWD_UNLINK(Z_STRVAL_PP(new_path));
- if (rename(Z_STRVAL_PP(path), Z_STRVAL_PP(new_path)) == 0) {
+ if (VCWD_RENAME(Z_STRVAL_PP(path), Z_STRVAL_PP(new_path)) == 0) {
successful = 1;
} else if (php_copy_file_ex(Z_STRVAL_PP(path), Z_STRVAL_PP(new_path), STREAM_DISABLE_OPEN_BASEDIR TSRMLS_CC) == SUCCESS) {
VCWD_UNLINK(Z_STRVAL_PP(path));

0 comments on commit 93af1c1

Please sign in to comment.