#37140 [Opn->WFx]: PHP / Apache can crash when accessing large files
| From: | danbrown@php.net | Date: | Fri, 08 May 2009 17:41:43 +0000 |
| Subject: | #37140 [Opn->WFx]: PHP / Apache can crash when accessing large files | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2218@lists.php.net to get a copy of this message | ||
ID: 37140
Updated by: danbrown@php.net
Reported By: david at acz dot org
-Status: Open
+Status: Wont fix
Bug Type: Documentation problem
Operating System: SuSE Linux 9.3
PHP Version: Irrelevant
New Comment:
This is an Apache memory limitation, not a crash caused by PHP. As
such, reference to the limitations (and potential workarounds) would be
the scope of the Apache documentation, not the PHP manual.
Previous Comments:
------------------------------------------------------------------------
[2006-04-19 22:56:59] david at acz dot org
Description:
------------
The manual mentions how to build PHP with large file support, but it
should also warn that PHP / Apache can crash when accessing large files.
Reproduce code:
---------------
$fp = fopen("/tmp/large.dat", "w");
fseek($fp, 2147483646);
fwrite($fp, "xx");
Note that there is not actually a filesize rlimit set:
$x = posix_getrlimit();
echo $x["soft filesize"] . " " . $x["hard filesize"];
Returns: unlimited unlimited
Expected result:
----------------
PHP should write one byte to the file (the second byte puts it over
2GB).
Actual result:
--------------
[Wed Apr 19 17:44:13 2006] [notice] child pid 26994 exit signal File
size limit exceeded (25)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37140&edit=1