|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-08 17:41 UTC] danbrown@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 09:00:01 2025 UTC |
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)