Weird behaviour of PHP

Several times I experience this problem. PHP, if configured as CGI, gave in error log message "eralloc() unable to allocate xxx bytes of memory". xxx may be 1,2,3 MBytes or even several bytes. It occurs when I try to run such usual things, as phpBB, for example.

But If I configure PHP as module it works fine. I assume, this error message is not caused by real insufficiency of memory - When I increase value of memory limit for scripts, it doesn't help.

If I get an error message, that "xxx bytes of memory are exhausted", I increase value of limit of memory and it helps.

What difference between two of this error messages and what is the first message caused by? It occurs only if PHP configured as CGI.

May be there are differences between two kind of configurations of PHP?

 

 

 

 

Top