|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-30 11:40 UTC] ab@php.net
-Status: Open
+Status: Wont fix
[2014-12-30 11:40 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
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