In my current situation, bail out, but gracefully -- perhaps just send
a 302 to an error page and exit; maybe instead throw away the output
buffer and then directly output some friendly error text.
I think you can do it with shutdown handler, shouldn't it work? I.e. you
can do it this way:
1. Install shutdown handler
2. Do something that takes a lot of memory
3. Memory is exhausted, script is terminated
4. The memory allocated by "something" is cleaned up, part by the
engine, part manually
5. Shutdown handler does something like output "sorry, better luck next
time" requiring minimal amount of memory.
--
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED] http://www.zend.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php