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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php