View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016782||phpList 3 application||plugins||public||01-05-13 19:52||03-05-13 01:28|
|Target Version||2.11.10||Fixed in Version||2.11.10|
|Summary||0016782: Update plugin does not overwrite directory|
|Description||When updating a plugin the php rename() function does not appear to reliably overwrite an existing directory. On both linux and windows (WAMP) the rename fails for a directory which already exists, but does replace a file that already exists.|
see file admin/plugins.php line 108
It is not a permissions problem because I can install and remove the plugin, and then install it again.
Possibly need to treat an update as a remove followed by an install to avoid this problem.
|Tags||No tags attached.|
||good you found that|
interesting in a way. Wonder if this is a PHP bug. The docs say on "rename":
Attempts to rename oldname to newname, moving it between directories if necessary. If newname exists, it will be overwritten.
but obviously that was not the case.