Re: [RFC] Exceptions in the engine

From: Date: Fri, 10 Oct 2014 12:52:10 +0000
Subject: Re: [RFC] Exceptions in the engine
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-77851@lists.php.net to get a copy of this message
Patrick wrote: > I would love to be able to catch, at toplevel. with an error handler or > otherwise, both the memory limits exceeded and time limit exceeded cases. +1, as the kids today say. I don't think that it should require any new code - we already have the ability to extend the memory limit dynamically: ini_set('memory_limit', (ini_get('memory_limit')+1).'M'); And similarly for set_time_limit(). Having the ability to catch these types of errors and do whatever is required to exit the program cleanly, is far superior to having a fatal error. cheers Dan

« previous php.internals (#77851) next »