Bug #68688 [NEW]: Can't access files larger then 4GiB via built-in web Server

From: Date: Mon, 29 Dec 2014 21:04:07 +0000
Subject: Bug #68688 [NEW]: Can't access files larger then 4GiB via built-in web Server
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189313@lists.php.net to get a copy of this message
From: sajina_99 at hotmail dot de Operating system: Windows 7 Pro 64Bit PHP version: 5.6.4 Package: Built-in web server Bug Type: Bug Bug description:Can't access files larger then 4GiB via built-in web Server Description: ------------ I can't access a file larger then 4GiB via built-in web server. I only get a 404 error with "Ressource not found". I made a simple .txt file with size of 4GiB - 1 KiB and a simple .txt file with size of 4GiB. I could access the first file (4GiB - 1 KiB) file without any problem, but not the 4GiB file. Test script: --------------- <?php $handle1 = fopen("./largefile.txt", "w"); //4GiB File $handle2 = fopen("./largefile2.txt", "w");//4GiB - 1KiB File $string = "A"; for($i = 0 ; $i < 10 ; $i++){ $string = $string . $string ; }//creats an 1 KiB larg string for($i = 0 ; $i < 4194304 ; $i++){ fwrite($handle1, $string); if($i > 1) fwrite($handle2, $string); } fclose($handle1); fclose($handle2); ?> Expected result: ---------------- Should be able to access both files via built-in server Actual result: -------------- can't access largefile.txt via built-in server -- Edit bug report at https://bugs.php.net/bug.php?id=68688&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68688&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68688&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68688&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68688&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68688&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68688&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68688&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68688&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68688&r=support Expected behavior: https://bugs.php.net/fix.php?id=68688&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68688&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68688&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68688&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68688&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68688&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68688&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68688&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68688&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68688&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68688&r=mysqlcfg

« previous php.bugs (#189313) next »