ID:               32816
 Updated by:       [EMAIL PROTECTED]
 Reported By:      admin at seasoft dot nl
-Status:           Closed
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Freebsd 5.2.1
 PHP Version:      5.0.4
 New Comment:

See #32553.


Previous Comments:
------------------------------------------------------------------------

[2005-04-25 09:12:34] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2005-04-25 02:16:35] admin at seasoft dot nl

Description:
------------
Hi, i've upgraded to php 5.0.4 from 4.3.4 and while file downloads did
work on the old version, i'am having difficulties with the last version
when files are over 2MB in size. Files that are bigger are just cut
short.

Adjusting upload_max_filesize and post_max_size doesn't help although
the changes are visible when viewing phpinfo.

phpinfo can be found here:
http://seasoft.nl/info.php

The error logs remain silent.

Thanks,

Tjeerd



Reproduce code:
---------------
<?
$mime_type = (PMA_USR_BROWSER_AGENT == 'IE' || PMA_USR_BROWSER_AGENT ==
'OPERA') ? 'application/octetstream' : 'application/octet-stream';
header('Content-Type: ' . $mime_type);
if (PMA_USR_BROWSER_AGENT == 'IE') {
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
        header('Content-Disposition: inline; filename="rel109.img"');
        header("Content-Transfer-Encoding: binary");
        header('Expires: 0');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');
} else {
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
        header('Content-Disposition: attachment; filename="rel109.img"');
        header("Content-Transfer-Encoding: binary");
        header('Expires: 0');
        header('Pragma: no-cache');
}
readfile('rel109.img');
?>




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32816&edit=1

Reply via email to