How do I detect a script failure in an extension's PHP_RSHUTDOWN_FUNCTION callback?
| From: | Richard Quadling | Date: | Thu, 05 Mar 2015 21:02:52 +0000 |
| Subject: | How do I detect a script failure in an extension's PHP_RSHUTDOWN_FUNCTION callback? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-84356@lists.php.net to get a copy of this message | ||
Hi.
There is a bug report for the win32service pecl extension (
https://bugs.php.net/bug.php?id=69170).
As a past contributor to this extension, I want to offer some help, even
though I'm not on Windows any more (nor have access to a license).
What I would like to provide is the ability to detect the nature of the
scripts termination (for example, but not limited to, fatal error,
unhandled exception, parse error - maybe, exit(n), etc.)
Is this possible?
If so, some suggestions would be nice.
Thanks.
Richard.
--
Richard Quadling
Twitter : @RQuadling