[phpa] Re: Memory leak?


> My users are reporting this occasional PHP script error:
> 
> Fatal error: Allowed memory size of 10388608 bytes exhausted (tried to
> allocate 45 bytes) in /..../global.php(274) : eval()'d code on line 2.
> 
> I'm running phpa 1.2 FreeBSD 4.3 version, FreeBSD 4.1.1 OS, PHP 4.0.6. 
> That error occured a long time ago when PHP 4.0.6 had the memory leak
> bug that was subsequently patched, but it hadn't occured again until I
> installed phpa.  Would 1.2p3 fix that?  The FreeBSD 4.5 version won't
> work on 4.1.1 - is a 4.3 port coming soon?  This question has probably
> been asked before but are you planning to distribute the source at any
> point so users can compile on their specific OS builds?

It should be pretty much impossible for phpa to leak memory, and I've tested
it with various memory testing tools in the past when verifying its
behaviour. However, phpa can allocate a large amount of memory while caching
code and optimising code, and the amount consumed could be reduced. I'll
review this for release 1.2p4 in addition to the other changes that I'm
making, and if I can make safe changes then I'll do this.

> 
> Thanks,
> Scott
> 
> ------------------------------------------------------------------------
>   www.php-accelerator.co.uk           Home of the free PHP Accelerator
> 
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject
> unsubscribe


------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: