|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38513 File over size
Submitted: 2006-08-19 20:09 UTC Modified: 2006-08-29 01:00 UTC
Avg. Score:2.1 ± 1.5
Reproduced:2 of 6 (33.3%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: ripper at ripper dot net dot ar Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.1.5 OS: Linux / Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-08-19 20:09 UTC] ripper at ripper dot net dot ar
A php script with a sockets fuction or fopen or maybe a ftp functions may cause a download file wich cause in some cases a   crash of apache, or a over size file > 1gb inside the hd.

Reproduce code:
$fp = fopen ("testfile.woext","w");
for ($a = 0; $a < 65535; $a++)
 for ($b = 0; $b < 65535; $b++)
  for ($c = 0; $c < 65535; $c++)
    $str = "File OverSize!!!!";

Expected result:
A message with WARNING or something setted by php config

Actual result:
A file size > 1gb or maybe 2gb


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-21 08:30 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

 [2006-08-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Feb 06 12:03:42 2023 UTC