Bug #80264 [NEW]: current_execute_data is NULL in zend_error_cb
| From: | f dot sowade at r9e dot de | Date: | Tue, 20 Oct 2020 15:48:49 +0000 |
| Subject: | Bug #80264 [NEW]: current_execute_data is NULL in zend_error_cb | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229808@lists.php.net to get a copy of this message | ||
From: f dot sowade at r9e dot de
Operating system: Linux and Mac OS
PHP version: 8.0.0RC2
Package: *General Issues
Bug Type: Bug
Bug description:current_execute_data is NULL in zend_error_cb
Description:
------------
When triggering an error using the attached test script,
EG(current_execute_data) is NULL in zend_error_va() just before calling
zend_error_cb and the error observers. This prevents error handlers from
calling zend_fetch_debug_backtrace() which needs
EG(current_execute_data) to produce the backtrace.
Calling zend_fetch_debug_backtrace() from inside an error callback did
work in PHP 7.4 and returned the backtrace where the error was
triggered.
Test script:
---------------
<?php
ini_set('display_errors', false);
non_existant_function();
--
Edit bug report at https://bugs.php.net/bug.php?id=80264&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80264&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80264&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80264&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80264&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80264&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80264&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80264&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80264&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80264&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80264&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80264&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80264&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80264&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80264&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80264&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80264&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80264&r=mysqlcfg