|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-07-22 14:54 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2020-07-22 14:54 UTC] nikic@php.net
[2020-07-22 15:17 UTC] kenashkov at gmail dot com
[2020-07-22 15:23 UTC] kenashkov at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 17:00:02 2026 UTC |
Description: ------------ The backtrace generate at object __destruct() seems has changed. PHP 7.2.24 returns the expected result, while on PHP 7.4.8 a stack frame is missing. Test script: --------------- <?php class ref { public function __destruct() { debug_print_backtrace(); print 'destr'; } } function f1() { try { f2(); } catch (\Exception $E) { } } function f2() { $o = new ref; throw new \Exception('ex'); } f1(); Expected result: ---------------- #0 ref->__destruct() called at [/t1.php:22] #1 f2() called at [/t1.php:13] #2 f1() called at [/t1.php:25] Actual result: -------------- #0 ref->__destruct() called at [/t1.php:13] #1 f1() called at [/t1.php:25]