php.net |  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
Votes:7
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ripper at ripper dot net dot ar
New email:
PHP Version: OS:

 

 [2006-08-19 20:09 UTC] ripper at ripper dot net dot ar
Description:
------------
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:
---------------
<?
set_time_limit(0);
$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!!!!";
    fputs($fp,$str,strlen($str);
  }
fclose($fp);
?>

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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-21 08:30 UTC] tony2001@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php 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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC