|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68688 Can't access files larger then 4GiB via built-in web Server
Submitted: 2014-12-29 21:04 UTC Modified: 2014-12-30 11:40 UTC
From: sajina_99 at hotmail dot de Assigned:
Status: Wont fix Package: Built-in web server
PHP Version: 5.6.4 OS: Windows 7 Pro 64Bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sajina_99 at hotmail dot de
New email:
PHP Version: OS:


 [2014-12-29 21:04 UTC] sajina_99 at hotmail dot de
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:
$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);

Expected result:
Should be able to access both files via built-in server

Actual result:
can't access largefile.txt via built-in server


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 11:40 UTC]
-Status: Open +Status: Wont fix
 [2014-12-30 11:40 UTC]
This won't fix in 5.x, but will work in 7. You might want to check the latest master snaps 

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 07:01:25 2023 UTC