Re: [PHP] Fatal Error Handling

2005-02-10 Thread James Taylor
-bash-2.05b$ php test.php Content-type: text/html X-Powered-By: PHP/4.3.10 Memory Limit: 32K Memory Used: 13432 Error (1024) in /www/l-i-e.com/web/test.php:12 - Test -bash-2.05b$ Note a complete lack of "Made it" nor an error message trapped by my error handler when the RAM runs out. :-( This

Re: [PHP] Fatal Error Handling

2005-02-09 Thread Richard Lynch
James Taylor wrote: > Richard Lynch wrote: >> James Taylor wrote: > Ok, using the @ that would get rid of the error message agreed, but it > still crashes the script (as a fatal error would and should). I took the > code from set_error_handler and that does not seem to work in this > instance - if

Re: [PHP] Fatal Error Handling

2005-02-09 Thread Guillermo Rauch
On Wed, 9 Feb 2005 08:21:25 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > James Taylor wrote: > > So finally quit that music thing and got a real job? :-) > > [Sorry. I'm sure you've heard them all, but I couldn't resist...] > > > I have a set of functions which are potentially dan

Re: [PHP] Fatal Error Handling

2005-02-09 Thread James Taylor
Richard Lynch wrote: James Taylor wrote: So finally quit that music thing and got a real job? :-) [Sorry. I'm sure you've heard them all, but I couldn't resist...] /me adds Richard Lynch onto the list of those who must die when the revolution comes... I have a set of functions which are potenti

Re: [PHP] Fatal Error Handling

2005-02-09 Thread Richard Lynch
James Taylor wrote: So finally quit that music thing and got a real job? :-) [Sorry. I'm sure you've heard them all, but I couldn't resist...] > I have a set of functions which are potentially dangerous in terms of > memory hogging, and need to protect from memory overflow - this is I > want

[PHP] Fatal Error Handling

2005-02-09 Thread James Taylor
Hi, I have a set of functions which are potentially dangerous in terms of memory hogging, and need to protect from memory overflow - this is I want to detect when the memory overflow occurs. The manual says that eval() will return false on a fatal error, so I thought I could do something like