Re: Catching/handing out of memory errors...

From: Date: Fri, 19 Oct 2007 13:56:50 +0000
Subject: Re: Catching/handing out of memory errors...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-263383@lists.php.net to get a copy of this message
John Parker wrote:
In essence, I'm asking if it's technically possible to catch an out of memory error in PHP. As such, it's not really a code specific issue. I'm just asked whether or not it's possible. (I'm pretty sure it isn't, I'm just double checking.)
As far as I know it's not technically possibly because the problem is caught when an attempt is made to allocate more memory than allowed and because it's a fatal error execution stops there. -Stut -- http://stut.net/ > -----Original Message----- > From: Jay Blanchard [mailto:jblanchard@pocket.com] > Sent: 19 October 2007 13:46 > To: John Parker; php-general@lists.php.net > Subject: RE: [PHP] Catching/handing out of memory errors... > > [snip] > I've tried using a error handler and try/catch block, but it doesn't > seem to be possible. > > Is this the case, or am I missing something obvious? > [/snip] > > Without seeing your code or knowing more specifics about what you are > trying to do it will be hard to answer this question. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#263383) next »