Ben Johnson - 2010-07-29 17:08:24
Line 242 of dUnzip2.inc.php is:
$dirname = ($dirname!='.')?dirname($fileName):'';
When PHP error reporting is configured to report warnings, this line produces output (because it is possible for $dirname not to be set). For this reason, un-zipping a file and then redirecting with header() fails in such situations. The fix would be to set $dirname to an empty string before this line, or suppress the warning with the @ operator:
$dirname = @($dirname!='.')?dirname($fileName):'';