Closed (fixed)
Project:
Drush
Component:
Base system (internal API)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 07:42 UTC
Updated:
9 Jun 2012 at 16:31 UTC
I'm building a custom Drush command. I want to trigger some code to be executed on a fatal error like:
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in
/opt/drush/includes/backend.inc, line 171
How can I catch this error and perform some tasks?
Comments
Comment #1
jonhattanhttp://lmgtfy.com/?q=php+Catching+fatal+memory+errors ;)