|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-21 08:30 UTC] tony2001@php.net
[2006-08-29 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
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