php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sajina_99 at hotmail dot de
New email:
PHP Version: OS:

 

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

Patches

Pull Requests

History

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

Thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 09:01:26 2025 UTC