Rounducbe Backup/Restore: pipe both stderr stdout to DA

Version 1.463


All output generated from the backup_roundcube.php and restore_roundcube.php is intended to be on stderr, and DA was only reading stderr from the child process. However, in some cases, no output was shown in the logs, so this change uses: dup2(STDOUT_FILENO, STDERR_FILENO) to pipe both pipes to stdout, and DA reads from that. One case was php 4 that didn't have mysqli caused errors, and seemed to be thrown the missing function/class via stdout so nothing was shown in DA, causing confusion.

Interested to try DirectAdmin? Get a 30-day Free Trial!