Req #76274 [NEW]: FatalExceptions don't include variables and stack traces under some conditions
| From: | archon810 at gmail dot com | Date: | Thu, 26 Apr 2018 22:57:20 +0000 |
| Subject: | Req #76274 [NEW]: FatalExceptions don't include variables and stack traces under some conditions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214914@lists.php.net to get a copy of this message | ||
From: archon810 at gmail dot com
Operating system: Linux
PHP version: 7.2.5
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:FatalExceptions don't include variables and stack traces under some conditions
Description:
------------
Hi,
This is a follow-up directly with the PHP team regarding
https://github.com/getsentry/sentry-php/issues/582,
a Sentry issue about
capturing variables and stack traces for PHP.
The problem is, after certain fatal exceptions, like out of memory or
maximum execution time exceeded, Sentry is unable to capture stack
traces and variables.
The conclusion in the thread is that error_get_last
(http://php.net/manual/en/function.error-get-last.php) does not provide
them to Sentry in such cases, so I'm here to facilitate a discussion
around the subject and find a possible fix because it's extremely
valuable to be able to see the variables and stack traces for such fatal
failures.
If the problem is that PHP's limitation, such as bumping into the memory
max, prevents this extra info from being passed, perhaps we can
introduce a configurable buffer which can help house this data?
Please discuss.
Thank you.
--
Edit bug report at https://bugs.php.net/bug.php?id=76274&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76274&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76274&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76274&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76274&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76274&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76274&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76274&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76274&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76274&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76274&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76274&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76274&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76274&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76274&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76274&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76274&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76274&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76274&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76274&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76274&r=mysqlcfg