Re: Memory allocation problems
| From: | Greg Beaver | Date: | Thu, 16 Jan 2003 17:07:15 +0000 |
| Subject: | Re: Memory allocation problems | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93526@lists.php.net to get a copy of this message | ||
phpDocumentor (http://www.phpdoc.org) has had problems with this as well.
PHP often doesn't give a fatal error, but instead segfaults. As of php
4.3.0, we aren't seeing any crashes, but haven't done extensive testing on
the cvs, as we are not yet near a full release.
Greg
"Edin Kadribasic" <ek@proventum.net> wrote in message
news:Pine.LNX.4.44.0301161134470.25182-100000@stargate.bhnet.dk...
> I have a script that allocates a lot of memory (huge associative arrays).
> The problem is that this scripts bails out with fatal error (emalloc
> unable to allocate 44 bytes) when I hit the limit of physical ram in the
> machine. Swap never gets used. The machine has 1 GB of ram and 2 GB of
> swap space.
>
> Has anyone seen something like this before? Are there any limitations in
> the PHP memory allocation code that would prevent it from being able to
> use more memory.
>
> Edin
>
>