Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
The function works fine, there is a problem in your setup if the function does not remove files. There shall be no symlinks in the real path of a website, so the path /var/www/clients/client1/web1/ may not contain a symlink. If a symlink is detected somewhere in the path, the unlink function has to refuse the removal.
If you moved e.g. /var/www to another disk on your server, then use mount bind instaed of a symlink to point the directory tree to the new location.
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
Thats not code form 3.0.5 RC1. Download the 3.0.5 RC1 tar.gz, unpack it and take a look into the system.inc.php file in server/lib/classes/. The code of this function is:
Recent comments
1 day 7 hours ago
1 day 10 hours ago
1 day 22 hours ago
2 days 59 min ago
2 days 5 hours ago
2 days 11 hours ago
2 days 20 hours ago
2 days 22 hours ago
3 days 6 hours ago
3 days 8 hours ago