|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-13 02:59 UTC] laruence@php.net
[2016-09-13 02:59 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-10-11 09:31 UTC] ab@php.net
[2016-10-11 10:47 UTC] derick@php.net
-Status: Closed
+Status: Re-Opened
[2016-10-11 10:48 UTC] derick@php.net
[2016-10-11 23:52 UTC] stas@php.net
[2016-10-11 23:52 UTC] stas@php.net
-Status: Re-Opened
+Status: Closed
[2016-10-12 14:26 UTC] ab@php.net
[2016-10-14 02:23 UTC] ab@php.net
[2016-10-17 10:07 UTC] bwoebi@php.net
[2016-10-17 10:08 UTC] bwoebi@php.net
[2016-10-17 11:33 UTC] krakjoe@php.net
[2016-10-17 13:22 UTC] krakjoe@php.net
[2016-10-17 16:13 UTC] andrey@php.net
[2016-10-17 19:30 UTC] ab@php.net
-Status: Closed
+Status: Re-Opened
[2016-10-25 15:21 UTC] krakjoe@php.net
[2016-10-25 15:21 UTC] krakjoe@php.net
-Status: Re-Opened
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ I'm using php 7.0.8 on Ubuntu 16.04 and I came across a strange bug, if an exception is thrown in the __debugInfo call, it will result in a fatal error no matter what you do. PHP expect __debugInfo to return an array but it is impossible because of the exception. Test script: --------------- <?php class Debug { public function __debugInfo() { throw new Exception("Test Crash"); } } try { var_dump(new Debug()); } catch (Exception $e) { echo $e->getMessage(); } Expected result: ---------------- > "Test Crash" Actual result: -------------- PHP Warning: Uncaught Exception: Test Crash in .../BugDebugInfo.php:7 Stack trace: #0 [internal function]: Debug->__debugInfo() #1 .../BugDebugInfo.php(12): var_dump(Object(Debug)) #2 {main} thrown in .../BugDebugInfo.php on line 7 PHP Fatal error: __debuginfo() must return an array in .../BugDebugInfo.php on line 12