Re: file_get_contents limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 29, 2010 at 4:39 PM, Ashley Sheridan
<ash@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Tue, 2010-06-29 at 16:37 -0400, Andrew Ballard wrote:
>
> > On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan
> > <ash@xxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > Have you looked at the memory settings in php.ini?
> > >
> >
> > I doubt that is the cause, at least not by itself. 21504 characters is
> > only 21K of data (could be more if the characters are multi-byte
> > encoded, but still less than 100K) , and the default memory limit in
> > PHP is 128M. I'm not sure what else it could be, though, as I don't
> > see any limitations on file_get_contents() discussed in the manual.
>
> Default memory limit is still 32MB on every default install I've seen.
>

The manual currently shows 128M, and that's what I've seen for some
time now. Even so, a function returning less than 100K shouldn't
exhaust 32M of memory either, unless something else is at play. If
there is a memory limit being reached, PHP should log either an error
or warning (I can't remember which).

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux