@@ -1214,15 +1214,15 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_f
1214
1214
* access to the file in the meantime.
1215
1215
*/
1216
1216
if (VCWD_CHOWN (url_to , sb .st_uid , sb .st_gid )) {
1217
- php_error_docref2 (NULL , url_from , url_to , E_WARNING , "%s" , strerror (errno ));
1217
+ php_error_docref (NULL , E_WARNING , "%s from %s to %s " , strerror (errno ), url_from , url_to );
1218
1218
if (errno != EPERM ) {
1219
1219
success = 0 ;
1220
1220
}
1221
1221
}
1222
1222
1223
1223
if (success ) {
1224
1224
if (VCWD_CHMOD (url_to , sb .st_mode )) {
1225
- php_error_docref2 (NULL , url_from , url_to , E_WARNING , "%s" , strerror (errno ));
1225
+ php_error_docref (NULL , E_WARNING , "%s from %s to %s " , strerror (errno ), url_from , url_to );
1226
1226
if (errno != EPERM ) {
1227
1227
success = 0 ;
1228
1228
}
@@ -1233,10 +1233,10 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_f
1233
1233
VCWD_UNLINK (url_from );
1234
1234
}
1235
1235
} else {
1236
- php_error_docref2 (NULL , url_from , url_to , E_WARNING , "%s" , strerror (errno ));
1236
+ php_error_docref (NULL , E_WARNING , "%s from %s to %s " , strerror (errno ), url_from , url_to );
1237
1237
}
1238
1238
} else {
1239
- php_error_docref2 (NULL , url_from , url_to , E_WARNING , "%s" , strerror (errno ));
1239
+ php_error_docref (NULL , E_WARNING , "%s from %s to %s " , strerror (errno ), url_from , url_to );
1240
1240
}
1241
1241
# if !defined(ZTS ) && !defined(TSRM_WIN32 )
1242
1242
umask (oldmask );
@@ -1249,7 +1249,7 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_f
1249
1249
#ifdef PHP_WIN32
1250
1250
php_win32_docref2_from_error (GetLastError (), url_from , url_to );
1251
1251
#else
1252
- php_error_docref2 (NULL , url_from , url_to , E_WARNING , "%s" , strerror (errno ));
1252
+ php_error_docref (NULL , E_WARNING , "%s from %s to %s " , strerror (errno ), url_from , url_to );
1253
1253
#endif
1254
1254
return 0 ;
1255
1255
}
0 commit comments