From: Operating system: vista 32 PHP version: 5.2.13 Package: Apache2 related Bug Type: Bug Bug description:Content-length header is limited to 32bit integer
Description: ------------ Content-length header is limited to 32bit integer on wista 32 systems under apache 2 sapi. header("Content-Length: 2967901695"); Expected on client - Content-Length: 2967901695 Actual - Content-Length: 2147483647 Test script: --------------- <?php header($_SERVER['SERVER_PROTOCOL'].' 200 OK'); header('Accept-Ranges: bytes'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=test.txt'); header("Content-Transfer-Encoding: binary"); header("Content-Length: 2967901695"); header('Connection: close'); //we open file with size exactly 2967901695 bytes $fp = fopen("somefile.name", 'rb'); fpassthru($fp); ?> Expected result: ---------------- Content-Length: 2967901695 Actual result: -------------- Content-Length: 2147483647 -- Edit bug report at http://bugs.php.net/bug.php?id=51723&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51723&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51723&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51723&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51723&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51723&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51723&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51723&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51723&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51723&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51723&r=support Expected behavior: http://bugs.php.net/fix.php?id=51723&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51723&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51723&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51723&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51723&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51723&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51723&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51723&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51723&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51723&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51723&r=mysqlcfg