From: engineer dot mahmoud22 at yahoo dot vom Operating system: windows 7 PHP version: 5.4.8 Package: Performance problem Bug Type: Bug Bug description:download ling probem
Description: ------------ when i download file , the file is corrupt becouse it download only 65 kbyte from the file although the size of the file is 10 mega and the files type i download is documents word and pdf file Test script: --------------- <?php session_start(); if(isset($_GET['pro_Id_down'])){ } require("index.php"); $pro_Id_down = $_GET['pro_Id_down']; $sqldown = "select * from proposal where P_Id= '$pro_Id_down'"; $query = mysql_query($sqldown); $result = mysql_fetch_assoc($query); $type = $result['type']; $file = $result['File']; $size = $result['size']; $name = $result['filename']; header("Content-type: $type"); header("Content-type: $type"); header("Content-length: $size"); header("Content-Disposition: filename = $name "); header("Cache-control: private"); header('Content-Transfer-Encoding: binary'); echo $file; ?> Expected result: ---------------- when downloading the file the file download stoped at 65 kbyte and file corrupt Actual result: -------------- what can i do please ?? -- Edit bug report at https://bugs.php.net/bug.php?id=63444&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63444&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63444&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63444&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63444&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63444&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63444&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63444&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63444&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63444&r=support Expected behavior: https://bugs.php.net/fix.php?id=63444&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63444&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63444&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63444&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63444&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63444&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63444&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63444&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63444&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63444&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63444&r=mysqlcfg